summaryrefslogtreecommitdiffstats
path: root/libsensors/sensors.cpp
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2011-12-23 19:33:01 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2011-12-23 19:34:39 +0700
commita2f814e52514989f5f8bd795ff603b81095598c2 (patch)
tree8896899aa442498f32252c8f95e39dbe84941eb8 /libsensors/sensors.cpp
parent91c2ee3f53227cecf4c720171d9379955c9a4463 (diff)
downloaddevice_samsung_aries-common-a2f814e52514989f5f8bd795ff603b81095598c2.zip
device_samsung_aries-common-a2f814e52514989f5f8bd795ff603b81095598c2.tar.gz
device_samsung_aries-common-a2f814e52514989f5f8bd795ff603b81095598c2.tar.bz2
libsensors: Update from crespo
Light sensor now uses calculation instead of pre-determined values Requires updated kernel
Diffstat (limited to 'libsensors/sensors.cpp')
-rw-r--r--libsensors/sensors.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsensors/sensors.cpp b/libsensors/sensors.cpp
index ca0a382..2459389 100644
--- a/libsensors/sensors.cpp
+++ b/libsensors/sensors.cpp
@@ -300,7 +300,9 @@ int sensors_poll_context_t::pollEvents(sensors_event_t* data, int count)
// we still have some room, so try to see if we can get
// some events immediately or just wait if we don't have
// anything to return
+ do {
n = poll(mPollFds, numFds, nbEvents ? 0 : -1);
+ } while (n < 0 && errno == EINTR);
if (n<0) {
LOGE("poll() failed (%s)", strerror(errno));
return -errno;