From: kibak.yoon Date: Wed, 22 Jun 2016 10:07:50 +0000 (+0900) Subject: sensord: fix the bug which converts wrong pause policy X-Git-Tag: accepted/tizen/common/20160627.191141^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fda09ec118138917b72afad8ab21f12988ce33e9;p=platform%2Fcore%2Fsystem%2Fsensord.git sensord: fix the bug which converts wrong pause policy Change-Id: I655ccde45a65637672fb9c23141e66b32d34c2c7 Signed-off-by: kibak.yoon --- diff --git a/src/client/client.cpp b/src/client/client.cpp index b900db4..129958c 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -44,9 +44,7 @@ using std::vector; #define DEFAULT_INTERVAL POLL_10HZ_MS -#define CONVERT_OPTION_PAUSE_POLICY(option) \ - (option == SENSOR_OPTION_DEFAULT || option == SENSOR_OPTION_ALWAYS_ON) ? \ - (option ^ 0b11) : option +#define CONVERT_OPTION_PAUSE_POLICY(option) ((option) ^ 0b11) static cmutex lock;