summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2020-04-24 16:57:08 +0200
committerJesse Chan <jc@lineageos.org>2020-05-16 10:30:26 +0800
commitb8a230d4d0a234c80530722bf5b85dce17b281a7 (patch)
tree5d795129db5e6993b8e763d4b462c405147f529c
parent80c90e970e7f57c91feee265517df878f7c3ddbb (diff)
downloadandroid_hardware_samsung-b8a230d4d0a234c80530722bf5b85dce17b281a7.tar.gz
android_hardware_samsung-b8a230d4d0a234c80530722bf5b85dce17b281a7.tar.bz2
android_hardware_samsung-b8a230d4d0a234c80530722bf5b85dce17b281a7.zip
sensors: get the full list of sensors
Samsung uses a special OperationMode (5555). Thanks to Pierre-Hugues HUSSON for the hint. Change-Id: I037ff5bf5a1edd65b616480d1c43cef8e61ba999 Signed-off-by: Jesse Chan <jc@lineageos.org>
-rw-r--r--hidl/sensors/Sensors.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/hidl/sensors/Sensors.cpp b/hidl/sensors/Sensors.cpp
index a1cd153..e9fc5ce 100644
--- a/hidl/sensors/Sensors.cpp
+++ b/hidl/sensors/Sensors.cpp
@@ -106,6 +106,9 @@ Sensors::Sensors()
}
}
+ /* Get us all sensors */
+ setOperationMode(static_cast<hardware::sensors::V1_0::OperationMode>(5555));
+
mInitCheck = OK;
}