hardware/intel/libsensors
Revision | e6ffbc7c0b68f0e4ba862f355a68433bd4294743 (tree) |
---|---|
Zeit | 2016-07-29 16:10:51 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
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.
@@ -54,7 +54,7 @@ int BoardConfig::sensorListSize() | ||
54 | 54 | const char *key = "persist.sys.sensors.iio.present"; |
55 | 55 | char value[PROPERTY_VALUE_MAX]; |
56 | 56 | |
57 | - if (property_get(key, value, "")) { | |
57 | + if (property_get(key, value, "1")) { | |
58 | 58 | if (strncmp(value, "1", 1) == 0) { |
59 | 59 | ALOGI("IIO sensor hub detected previously; assuming it is still attached."); |
60 | 60 | return ARRAY_SIZE(sSensorList); |