Fix emergency_recovery logic.
Change-Id: I1ea17f15a0e627296fb46b20765c59d0998eaf2a
diff --git a/nxp/jni/com_android_nfc_NativeNfcManager.cpp b/nxp/jni/com_android_nfc_NativeNfcManager.cpp
index d6b6aa5..c95642f 100644
--- a/nxp/jni/com_android_nfc_NativeNfcManager.cpp
+++ b/nxp/jni/com_android_nfc_NativeNfcManager.cpp
@@ -599,7 +599,7 @@
* Performs a software reset
*/
void emergency_recovery(struct nfc_jni_native_data *nat) {
- if (!is_user_build()) {
+ if (is_user_build()) {
ALOGE("emergency_recovery: force restart of NFC service");
} else {
// dont recover immediately, so we can debug