Fix emulation based on nfc-emulation.c

This commit is contained in:
Romuald Conty 2012-05-14 20:47:41 +00:00
parent 769fc63bb0
commit 9383fa66bf

View file

@ -40,7 +40,7 @@ nfc_emulate_target (nfc_device *pnd, struct nfc_emulator *emulator)
} }
while (res >= 0) { while (res >= 0) {
res = emulator->state_machine->io (emulator, abtRx, (size_t) szRx, abtTx, sizeof (abtTx)); res = emulator->state_machine->io (emulator, abtRx, sizeof(abtRx), abtTx, sizeof (abtTx));
if (res > 0) { if (res > 0) {
if (nfc_target_send_bytes(pnd, abtTx, res, 0) < 0) { if (nfc_target_send_bytes(pnd, abtTx, res, 0) < 0) {
return -1; return -1;