Skip to content

Instantly share code, notes, and snippets.

@luca020400
Created August 6, 2020 12:20
Show Gist options
  • Select an option

  • Save luca020400/6868638d98b49f21f3f23115edf0e1b7 to your computer and use it in GitHub Desktop.

Select an option

Save luca020400/6868638d98b49f21f3f23115edf0e1b7 to your computer and use it in GitHub Desktop.
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