diff options
author | Martijn Coenen <maco@google.com> | 2013-09-12 14:59:29 +0200 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2013-09-12 14:59:29 +0200 |
commit | 33aeb7c13f8fd9d9bd301f31680836b8ec912d51 (patch) | |
tree | 7b45d3ef1d1d741918703aa52465d1837daa8c49 | |
parent | d6ead4d11c56cc4b1e90a93d6d5fe7583abbbfb8 (diff) | |
download | android_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-x | nci/jni/NativeNfcManager.cpp | 3 |
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 |