diff options
-rw-r--r-- | inc/phNfcConfig.h | 4 | ||||
-rw-r--r-- | src/phLibNfc_initiator.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/inc/phNfcConfig.h b/inc/phNfcConfig.h index 2bf6cd1..83164b8 100644 --- a/inc/phNfcConfig.h +++ b/inc/phNfcConfig.h @@ -141,7 +141,7 @@ /**< Default Session ID for Initialisation */ #ifndef DEFAULT_SESSION -#define DEFAULT_SESSION "android1" +#define DEFAULT_SESSION "android2" #endif @@ -309,7 +309,7 @@ * Initialisation */ #if !defined(NXP_SMX) -#define NXP_SMX 0 +#define NXP_SMX 1 #endif #if (NXP_SMX == 1) diff --git a/src/phLibNfc_initiator.c b/src/phLibNfc_initiator.c index ea0d81f..efb7ec1 100644 --- a/src/phLibNfc_initiator.c +++ b/src/phLibNfc_initiator.c @@ -725,6 +725,10 @@ STATIC void phLibNfc_RemoteDev_Disconnect_cb( gpphLibContext->LastTrancvSuccess = FALSE; /*Reset Connected handle */ gpphLibContext->Connected_handle=0x0000; + if(gpphLibContext->sSeContext.eActivatedMode == phLibNfc_SE_ActModeWired) + { + gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeDefault; + } if(NULL != gpphLibContext->psBufferedAuth) { if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer) |