fix wrong condition for exception case 54/103954/2
authorlokilee73 <changjoo.lee@samsung.com>
Mon, 12 Dec 2016 02:09:07 +0000 (11:09 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Mon, 12 Dec 2016 02:11:40 +0000 (11:11 +0900)
Change-Id: I3ae21806c4da3a87ae1dfe9f41ad33a308e107dc
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/powerkey/powerkey-wearable.c

index 0dd614d..21d298f 100755 (executable)
@@ -442,7 +442,7 @@ static void set_flight_icon(int value)
 {
        int ret = 0;
 
-       if (value > 1 && value < 0) {
+       if (value > 1 || value < 0) {
                _E("Invalid VCONFKEY_TELEPHONY_FLIGHT_MODE value");
                return;
        }