ilibfreefare: The transfer operation actually returns something.

This commit is contained in:
Romain Tartiere 2010-02-18 16:45:24 +00:00
parent 8903968ea3
commit 37c404b128

View file

@ -500,12 +500,13 @@ mifare_classic_transfer (MifareClassicTag tag, const MifareClassicBlockNumber bl
// Send command // Send command
size_t n; size_t n;
if (!(nfc_initiator_transceive_dep_bytes (tag->device, command, sizeof (command), NULL, &n))) { unsigned char buffer[1];
if (!(nfc_initiator_transceive_dep_bytes (tag->device, command, sizeof (command), buffer, &n))) {
errno = EIO; errno = EIO;
return -1; return -1;
} }
// No result. The MIFARE tag just ACKed. // FIXME: The receive command returns data. Should be checked.
return 0; return 0;
} }