Reindent; Fix ACR122 driver [1]; make distcheck OK.
Pointy hat to: me [1]
This commit is contained in:
parent
4e50bf7a8b
commit
21df72269a
2 changed files with 78 additions and 78 deletions
|
@ -156,7 +156,7 @@ acr122_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *p
|
||||||
if (SCardConnect(*pscc,acDeviceNames + szPos,SCARD_SHARE_EXCLUSIVE,SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1,&(as.hCard),(void*)&(as.ioCard.dwProtocol)) != SCARD_S_SUCCESS)
|
if (SCardConnect(*pscc,acDeviceNames + szPos,SCARD_SHARE_EXCLUSIVE,SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1,&(as.hCard),(void*)&(as.ioCard.dwProtocol)) != SCARD_S_SUCCESS)
|
||||||
{
|
{
|
||||||
// Connect to ACR122 firmware version >2.0
|
// Connect to ACR122 firmware version >2.0
|
||||||
if (SCardConnect(*pscc,pndd->acDevice,SCARD_SHARE_DIRECT,0,&(as.hCard),(void*)&(as.ioCard.dwProtocol)) != SCARD_S_SUCCESS)
|
if (SCardConnect(*pscc,acDeviceNames + szPos,SCARD_SHARE_DIRECT,0,&(as.hCard),(void*)&(as.ioCard.dwProtocol)) != SCARD_S_SUCCESS)
|
||||||
{
|
{
|
||||||
// We can not connect to this device.
|
// We can not connect to this device.
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue