mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-05-27 23:56:17 +00:00
Fix emulation based on nfc-emulation.c
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user