Replace WITH_SMARTCARD by dynamic detection in client

This commit is contained in:
Philippe Teuwen 2019-05-01 22:33:27 +02:00
commit 6b2677c154
2 changed files with 19 additions and 23 deletions

View file

@ -293,11 +293,10 @@ static int EMVExchangeEx(EMVCommandChannel channel, bool ActivateField, bool Lea
}
break;
case ECC_CONTACT:
#ifdef WITH_SMARTCARD
res = ExchangeAPDUSC(data, (IncludeLe ? 6 : 5) + apdu.Lc, ActivateField, LeaveFieldON, Result, (int)MaxResultLen, (int *)ResultLen);
#else
res = 1;
#endif
if (IfPm3Smartcard())
res = ExchangeAPDUSC(data, (IncludeLe ? 6 : 5) + apdu.Lc, ActivateField, LeaveFieldON, Result, (int)MaxResultLen, (int *)ResultLen);
else
res = 1;
if (res) {
return res;
}