sm8450-common: udfps: Correct vendorCodes
Change-Id: I39f37f278e39487c21d96e05ee331c4960d5e2be
This commit is contained in:
parent
6cfbe86b6d
commit
44edf478c1
1 changed files with 8 additions and 5 deletions
|
@ -113,11 +113,14 @@ class XiaomiSm8450UdfpsHander : public UdfpsHandler {
|
||||||
if (!enrolling) {
|
if (!enrolling) {
|
||||||
setFodStatus(FOD_STATUS_OFF);
|
setFodStatus(FOD_STATUS_OFF);
|
||||||
}
|
}
|
||||||
} else if (vendorCode == 21 || vendorCode == 23) {
|
}
|
||||||
/*
|
|
||||||
* vendorCode = 21 waiting for fingerprint authentication
|
/* vendorCode
|
||||||
* vendorCode = 23 waiting for fingerprint enroll
|
* 21: waiting for finger
|
||||||
*/
|
* 22: finger down
|
||||||
|
* 23: finger up
|
||||||
|
*/
|
||||||
|
if (vendorCode == 21) {
|
||||||
setFodStatus(FOD_STATUS_ON);
|
setFodStatus(FOD_STATUS_ON);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue