summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2013-09-12 14:59:29 +0200
committerMartijn Coenen <maco@google.com>2013-09-12 14:59:29 +0200
commit33aeb7c13f8fd9d9bd301f31680836b8ec912d51 (patch)
tree7b45d3ef1d1d741918703aa52465d1837daa8c49
parentd6ead4d11c56cc4b1e90a93d6d5fe7583abbbfb8 (diff)
downloadandroid_packages_apps_Nfc-33aeb7c13f8fd9d9bd301f31680836b8ec912d51.tar.gz
android_packages_apps_Nfc-33aeb7c13f8fd9d9bd301f31680836b8ec912d51.tar.bz2
android_packages_apps_Nfc-33aeb7c13f8fd9d9bd301f31680836b8ec912d51.zip
Fix build.
Change-Id: Id29de698f60266a0dd8d6fb4d5823dc5011f1562
-rwxr-xr-xnci/jni/NativeNfcManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/nci/jni/NativeNfcManager.cpp b/nci/jni/NativeNfcManager.cpp
index 8da23c0d..9772dc42 100755
--- a/nci/jni/NativeNfcManager.cpp
+++ b/nci/jni/NativeNfcManager.cpp
@@ -1072,10 +1072,11 @@ void enableDisableLptd (bool enable)
}
// Bail if we checked and didn't find any LPTD config before
if (!sHasLptd) return;
+ UINT8 enable_byte = enable ? 0x01 : 0x00;
SyncEventGuard guard(sNfaSetConfigEvent);
- stat = NFA_SetConfig(NCI_PARAM_ID_TAGSNIFF_CFG, 1, enable ? 0x01 : 0x00);
+ stat = NFA_SetConfig(NCI_PARAM_ID_TAGSNIFF_CFG, 1, &enable_byte);
if (stat == NFA_STATUS_OK)
sNfaSetConfigEvent.wait ();
else