From: kibak.yoon Date: Wed, 22 Jun 2016 10:06:00 +0000 (+0900) Subject: capi-sensor: fix the bug which converts wrong pause policy X-Git-Tag: accepted/tizen/common/20160627.191138^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F76025%2F1;p=platform%2Fcore%2Fapi%2Fsensor.git capi-sensor: fix the bug which converts wrong pause policy Signed-off-by: kibak.yoon Change-Id: I6eecd1ab64e5bd30a42ec001756c11e0f57e5783 --- diff --git a/src/sensor.cpp b/src/sensor.cpp index ea71b92..d0bdc06 100644 --- a/src/sensor.cpp +++ b/src/sensor.cpp @@ -49,9 +49,7 @@ #define CONVERT_AXIS_ENUM(X) ((X) < 3 ? (X) + 0x81 : (X) - 2) -#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 int sensor_connect(sensor_h sensor, sensor_listener_h listener) {