sm8450-common: udfps: Correct vendorCodes

Change-Id: I39f37f278e39487c21d96e05ee331c4960d5e2be
This commit is contained in:
Arian 2024-03-14 13:38:56 +01:00
parent 6cfbe86b6d
commit 44edf478c1

View file

@ -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);
} }
} }