From 2ffb24799e579c47a73c992ab567f05c4bf0c962 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 b0d0f12c6..f9355249a 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