Removed hard-coded size of ack frame.

This commit is contained in:
Emanuele Bertoldi 2011-01-28 10:22:21 +00:00
parent cf92bfaeee
commit 35188bff25

View file

@ -247,9 +247,9 @@ pn532_uart_transceive (nfc_device_t * pnd, const byte_t * pbtTx, const size_t sz
} }
#ifdef DEBUG #ifdef DEBUG
PRINT_HEX ("TX", ack_frame, 6); PRINT_HEX ("TX", ack_frame, sizeof(ack_frame));
#endif #endif
res = uart_send ((serial_port) pnd->nds, ack_frame, 6); res = uart_send ((serial_port) pnd->nds, ack_frame, sizeof(ack_frame));
if (res != 0) { if (res != 0) {
ERR ("%s", "Unable to transmit data. (TX)"); ERR ("%s", "Unable to transmit data. (TX)");
pnd->iLastError = res; pnd->iLastError = res;