summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-08-03 21:18:41 +0200
committerPaul Kocialkowski <contact@paulk.fr>2014-08-03 21:18:41 +0200
commit312265fa1a4dc34a7ac29f72303f6ce4cd5220a5 (patch)
treeb0e0336a05e55ee41b3a1b5c4a3588569f4eefb9
parent779bf1afd19f5b784c5c1c47d50fdd56b1f5ebfd (diff)
downloadpackages_apps_nfc-replicant-4.2.zip
packages_apps_nfc-replicant-4.2.tar.gz
packages_apps_nfc-replicant-4.2.tar.bz2
Power off only when initialization failedHEADreplicant-4.2-0004replicant-4.2-0003replicant-4.2
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rwxr-xr-xnxp/jni/com_android_nfc_NativeNfcManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/nxp/jni/com_android_nfc_NativeNfcManager.cpp b/nxp/jni/com_android_nfc_NativeNfcManager.cpp
index 02086da..f914854 100755
--- a/nxp/jni/com_android_nfc_NativeNfcManager.cpp
+++ b/nxp/jni/com_android_nfc_NativeNfcManager.cpp
@@ -629,9 +629,10 @@ clean_and_return:
kill_client(nat);
}
+
+ phDal4Nfc_Reset(0);
}
if (pn544_dev != NULL) {
- phDal4Nfc_Reset(0);
nfc_pn544_close(pn544_dev);
}
nfc_cb_data_deinit(&cb_data);