Fix emulation based on nfc-emulation.c
This commit is contained in:
parent
769fc63bb0
commit
9383fa66bf
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ nfc_emulate_target (nfc_device *pnd, struct nfc_emulator *emulator)
|
|||
}
|
||||
|
||||
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 (nfc_target_send_bytes(pnd, abtTx, res, 0) < 0) {
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue