From 36f429d300be2550d7459b488dfc05b00ec59312 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 16 Sep 2010 21:41:13 -0700 Subject: [PATCH] Fix typo which causes sensors to fail miserably Change-Id: Ieca18fc089e2bdf7d049f213836971b54d11cd76 --- libs/gui/SensorEventQueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gui/SensorEventQueue.cpp b/libs/gui/SensorEventQueue.cpp index b0d0f12c6b16d..f9355249ab92d 100644 --- a/libs/gui/SensorEventQueue.cpp +++ b/libs/gui/SensorEventQueue.cpp @@ -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