fix various minor mistakes, ajust timeouts

This commit is contained in:
Romuald Conty 2012-01-10 14:10:44 +00:00
parent 1ec504e163
commit efa86f0e35
3 changed files with 4 additions and 4 deletions

View file

@ -935,7 +935,7 @@ pn53x_check_communication (struct nfc_device *pnd)
if ((res = pn53x_transceive (pnd, abtCmd, sizeof (abtCmd), abtRx, szRx, 500)) < 0)
return res;
szRx = (size_t) res;
if (((sizeof(abtExpectedRx) == szRx) && (0 == memcmp (abtRx, abtExpectedRx, sizeof(abtExpectedRx)))) == 0)
if ((sizeof(abtExpectedRx) == szRx) && (0 == memcmp (abtRx, abtExpectedRx, sizeof(abtExpectedRx))))
return NFC_SUCCESS;
return NFC_EIO;