From c60a9acc4d3a05723aeb8a3831c77de1fe70769f Mon Sep 17 00:00:00 2001 From: Suhas Suresh Date: Tue, 24 Oct 2017 18:49:41 +0530 Subject: Code correction in p2p_prio_logic_multiprotocol Corrected the wrong condition check for screenState --- nci/jni/NativeNfcManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nci/jni/NativeNfcManager.cpp b/nci/jni/NativeNfcManager.cpp index 880d93c5..a0428fdf 100755 --- a/nci/jni/NativeNfcManager.cpp +++ b/nci/jni/NativeNfcManager.cpp @@ -642,7 +642,7 @@ void *p2p_prio_logic_multiprotocol(void *arg) ALOGD ("%s: enter", __FUNCTION__); /* Do not need if it is already in screen off state */ - if ((getScreenState() != (NFA_SCREEN_STATE_OFF_LOCKED || NFA_SCREEN_STATE_OFF_UNLOCKED))) + if (!(getScreenState() & (NFA_SCREEN_STATE_OFF_LOCKED | NFA_SCREEN_STATE_OFF_UNLOCKED))) { /* Stop polling */ if (sRfEnabled) -- cgit v1.2.3