diff options
author | Evan Chu <evanchu@broadcom.com> | 2012-09-05 10:14:19 -0400 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-09-11 12:24:16 -0700 |
commit | 643bf71c665fd08b5a5cd367a8baa2da52116c64 (patch) | |
tree | 84035b0e92b24b1a1755695786c72b41d8e7431b /nci/jni | |
parent | 0056bce9a6b688959e94b70cc80fb8ae331d9af9 (diff) | |
download | packages_apps_nfc-643bf71c665fd08b5a5cd367a8baa2da52116c64.zip packages_apps_nfc-643bf71c665fd08b5a5cd367a8baa2da52116c64.tar.gz packages_apps_nfc-643bf71c665fd08b5a5cd367a8baa2da52116c64.tar.bz2 |
User proper error code during tag reading
When reading a tag and it does not respond to a command, use taglost=1.
It causes a TagLostException in the app.
Bug: 7047415
Change-Id: I766849991441b82e5ad03d3031bc735fa5f9c27a
Diffstat (limited to 'nci/jni')
-rwxr-xr-x | nci/jni/NativeNfcTag.cpp | 2 |
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; } |