Created
August 6, 2020 12:20
-
-
Save luca020400/6868638d98b49f21f3f23115edf0e1b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/fod/FingerprintInscreen.cpp b/fod/FingerprintInscreen.cpp | |
| index 6e92494..87263e2 100644 | |
| --- a/fod/FingerprintInscreen.cpp | |
| +++ b/fod/FingerprintInscreen.cpp | |
| @@ -40,12 +40,12 @@ Return<void> FingerprintInscreen::onFinishEnroll() { | |
| } | |
| Return<void> FingerprintInscreen::onPress() { | |
| - this->mGoodixFingerprintDaemon->sendCommand(0x600, {}, {}); | |
| + this->mGoodixFingerprintDaemon->sendCommand(0x600, {}, [](int, const hidl_vec<signed char> &) {}); | |
| return Void(); | |
| } | |
| Return<void> FingerprintInscreen::onRelease() { | |
| - this->mGoodixFingerprintDaemon->sendCommand(0x601, {}, {}); | |
| + this->mGoodixFingerprintDaemon->sendCommand(0x601, {}, [](int, const hidl_vec<signed char> &) {}); | |
| return Void(); | |
| } | |
| diff --git a/fod/FingerprintInscreen.h b/fod/FingerprintInscreen.h | |
| index 9c57e53..f23aaf6 100644 | |
| --- a/fod/FingerprintInscreen.h | |
| +++ b/fod/FingerprintInscreen.h | |
| @@ -30,6 +30,7 @@ namespace implementation { | |
| using ::android::sp; | |
| using ::android::hardware::Return; | |
| using ::android::hardware::Void; | |
| +using ::android::hardware::hidl_vec; | |
| using ::vendor::goodix::hardware::biometrics::fingerprint::V2_1::IGoodixFingerprintDaemon; | |
| class FingerprintInscreen : public IFingerprintInscreen { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment