From 2bc17929536528973571087813cb9746ea4947a6 Mon Sep 17 00:00:00 2001 From: Paul Chaisson Date: Thu, 6 Sep 2012 23:54:55 -0400 Subject: Use NFA_DM_DISC_DURATION_POLL from config file. Use the poll duration ("NFA_DM_DISC_DURATION_POLL") from the conf file if one is configured. Change-Id: If17d402cbe8505b096a168640f99b88f7e3b6e48 --- nci/jni/NativeNfcManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nci/jni/NativeNfcManager.cpp b/nci/jni/NativeNfcManager.cpp index 14e9cb9..ca1bb06 100755 --- a/nci/jni/NativeNfcManager.cpp +++ b/nci/jni/NativeNfcManager.cpp @@ -741,6 +741,10 @@ static jboolean nfcManager_doInitialize (JNIEnv* e, jobject o) if (!GetNumValue(NAME_NFA_DM_MULTI_TECH_RESP, &num, sizeof(num)) || (num != 0)) NFA_SetMultiTechRsp(TRUE); + // if this value exists, set polling interval. + if (GetNumValue(NAME_NFA_DM_DISC_DURATION_POLL, &num, sizeof(num))) + NFA_SetRfDiscoveryDuration(num); + // Do custom NFCA startup configuration. doStartupConfig(); goto TheEnd; -- cgit v1.1