diff options
author | Nick Pelly <npelly@google.com> | 2011-07-12 16:14:04 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2011-07-12 16:15:37 -0700 |
commit | c91dcc5473a79bb2a024e8196e3cf287448f5e4b (patch) | |
tree | 6b712301c7f721e497934c698f64f8259543bf07 /jni/com_android_nfc_NativeNfcManager.cpp | |
parent | e7a398f2f0256a4a80a4ee08b70d48dbfd8da6d2 (diff) | |
download | packages_apps_nfc-c91dcc5473a79bb2a024e8196e3cf287448f5e4b.zip packages_apps_nfc-c91dcc5473a79bb2a024e8196e3cf287448f5e4b.tar.gz packages_apps_nfc-c91dcc5473a79bb2a024e8196e3cf287448f5e4b.tar.bz2 |
Do not write to EEPROM when turning screen on/off.
The card emulation duration is kept in EEPROM, and does not need to
be re-configured. Just turning the polling loop off is enough.
Change-Id: I25ee443d04635b3434dabf675ad5a32c4f0f468c
Diffstat (limited to 'jni/com_android_nfc_NativeNfcManager.cpp')
-rw-r--r-- | jni/com_android_nfc_NativeNfcManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jni/com_android_nfc_NativeNfcManager.cpp b/jni/com_android_nfc_NativeNfcManager.cpp index b37b8d4..e4544c3 100644 --- a/jni/com_android_nfc_NativeNfcManager.cpp +++ b/jni/com_android_nfc_NativeNfcManager.cpp @@ -1510,7 +1510,7 @@ static void nfc_jni_stop_discovery_locked(struct nfc_jni_native_data *nat) } discovery_cfg.PollDevInfo.PollEnabled = 0; - discovery_cfg.Duration = 0xffffffff; + discovery_cfg.Duration = 300000; /* in ms */ /*discovery_cfg.NfcIP_Mode = phNfc_eInvalidP2PMode;*/ discovery_cfg.NfcIP_Mode = phNfc_eDefaultP2PMode; discovery_cfg.NfcIP_Tgt_Disable = TRUE; |