OSDN Git Service

Fix typo which causes sensors to fail miserably
authorMathias Agopian <mathias@google.com>
Fri, 17 Sep 2010 04:41:13 +0000 (21:41 -0700)
committerMathias Agopian <mathias@google.com>
Fri, 17 Sep 2010 04:41:13 +0000 (21:41 -0700)
Change-Id: Ieca18fc089e2bdf7d049f213836971b54d11cd76

libs/gui/SensorEventQueue.cpp

index b0d0f12..f935524 100644 (file)
@@ -110,7 +110,7 @@ status_t SensorEventQueue::waitForEvent() const
         }
     } while (result != fd);
 
-    return result;
+    return  (result == fd) ? status_t(NO_ERROR) : result;
 }
 
 status_t SensorEventQueue::wake() const