Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-libsensors: Commit

hardware/intel/libsensors


Commit MetaInfo

Revisione6ffbc7c0b68f0e4ba862f355a68433bd4294743 (tree)
Zeit2016-07-29 16:10:51
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

libsensors: workaround sensors never detected

Sometimes the iio:devices may not be ready at booting.
Assume it's always present. If you want to detect it
at runtime, set persist.sys.sensors.iio.present=0.

Ändern Zusammenfassung

Diff

--- a/hsb/BoardConfig.cpp
+++ b/hsb/BoardConfig.cpp
@@ -54,7 +54,7 @@ int BoardConfig::sensorListSize()
5454 const char *key = "persist.sys.sensors.iio.present";
5555 char value[PROPERTY_VALUE_MAX];
5656
57- if (property_get(key, value, "")) {
57+ if (property_get(key, value, "1")) {
5858 if (strncmp(value, "1", 1) == 0) {
5959 ALOGI("IIO sensor hub detected previously; assuming it is still attached.");
6060 return ARRAY_SIZE(sSensorList);
Show on old repository browser