sm8150-common: fod: ignore vendor error code 6

Change-Id: I7210665da543c3d56335bf280b8a6c16fe107b4e
This commit is contained in:
Peter Cai 2019-09-08 10:49:30 +08:00
parent bea94bd664
commit 19ea9f3e05
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@
#include <fstream>
#define FINGERPRINT_ACQUIRED_VENDOR 6
#define FINGERPRINT_ERROR_VENDOR 8
#define OP_ENABLE_FP_LONGPRESS 3
#define OP_DISABLE_FP_LONGPRESS 4
@ -138,8 +139,8 @@ Return<bool> FingerprintInscreen::handleAcquired(int32_t acquiredInfo, int32_t v
return false;
}
Return<bool> FingerprintInscreen::handleError(int32_t, int32_t) {
return false;
Return<bool> FingerprintInscreen::handleError(int32_t error, int32_t vendorCode) {
return error == FINGERPRINT_ERROR_VENDOR && vendorCode == 6;
}
Return<void> FingerprintInscreen::setLongPressEnabled(bool enabled) {