diff options
-rw-r--r-- | src/phLibNfc_SE.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/phLibNfc_SE.c b/src/phLibNfc_SE.c index 958f0d1..5fa4e08 100644 --- a/src/phLibNfc_SE.c +++ b/src/phLibNfc_SE.c @@ -448,7 +448,10 @@ NFCSTATUS phLibNfc_SE_SetMode ( phLibNfc_Handle hSE_Handle, } if(Status==NFCSTATUS_SUCCESS) { - pLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeVirtual; + if(pLibContext->sSeContext.eActivatedMode != phLibNfc_SE_ActModeWired) + { + pLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeVirtual; + } pLibContext->sCardEmulCfg.emuType = eEmulationType; Status = phHal4Nfc_ConfigParameters( pLibContext->psHwReference, @@ -513,7 +516,12 @@ NFCSTATUS phLibNfc_SE_SetMode ( phLibNfc_Handle hSE_Handle, if(Status==NFCSTATUS_SUCCESS) { pLibContext->sCardEmulCfg.emuType = eEmulationType; - pLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeOff; + + if(pLibContext->sSeContext.eActivatedMode != phLibNfc_SE_ActModeWired) + { + pLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeOff; + } + Status = phHal4Nfc_ConfigParameters(pLibContext->psHwReference, NFC_EMULATION_CONFIG, (phHal_uConfig_t*)&pLibContext->sCardEmulCfg, |