diff --git a/targets/stm32l432/src/nfc.c b/targets/stm32l432/src/nfc.c index d230849..f35f42b 100644 --- a/targets/stm32l432/src/nfc.c +++ b/targets/stm32l432/src/nfc.c @@ -196,7 +196,14 @@ bool nfc_write_response_ex(uint8_t req0, uint8_t * data, uint8_t len, uint16_t r res[len + block_offset + 0] = resp >> 8; res[len + block_offset + 1] = resp & 0xff; + nfc_write_frame(res, block_offset + len + 2); + + if (!ams_wait_for_tx(1)) + { + printf1(TAG_NFC, "TX resp timeout. len: %d \r\n", len); + return false; + } return true; }