summaryrefslogtreecommitdiffstats
path: root/nci
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-09-11 12:26:00 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-11 12:26:01 -0700
commitbd233c444ac568b408880e5d5578500ef4c0578c (patch)
treee0f98e0477539f5bb75bc11b950784c76e71342e /nci
parenta960b02cc3f830d7e8dfc2a5b929aec5a23c7bab (diff)
parent643bf71c665fd08b5a5cd367a8baa2da52116c64 (diff)
downloadpackages_apps_nfc-bd233c444ac568b408880e5d5578500ef4c0578c.zip
packages_apps_nfc-bd233c444ac568b408880e5d5578500ef4c0578c.tar.gz
packages_apps_nfc-bd233c444ac568b408880e5d5578500ef4c0578c.tar.bz2
Merge "User proper error code during tag reading" into jb-broadcom-nfc
Diffstat (limited to 'nci')
-rwxr-xr-xnci/jni/NativeNfcTag.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/nci/jni/NativeNfcTag.cpp b/nci/jni/NativeNfcTag.cpp
index b4b517b..d4281ce 100755
--- a/nci/jni/NativeNfcTag.cpp
+++ b/nci/jni/NativeNfcTag.cpp
@@ -857,7 +857,7 @@ static jbyteArray nativeNfcTag_doTransceive (JNIEnv *e, jobject o, jbyteArray da
{
ALOGE ("%s: wait response timeout", __FUNCTION__);
if (targetLost)
- *targetLost = 2; //causes NFC service to throw IOException
+ *targetLost = 1; //causes NFC service to throw TagLostException
break;
}