Skip to content

Commit

Permalink
remove delays
Browse files Browse the repository at this point in the history
  • Loading branch information
merlokk authored and conorpp committed Aug 23, 2019
1 parent abe306a commit 5d3914b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions targets/stm32l432/src/nfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,15 +802,13 @@ void nfc_process_iblock(uint8_t * buf, int len)

memmove(&chain_buffer[chain_buffer_len], apdu.data, apdu.lc);
chain_buffer_len += apdu.lc;
delay(1);
nfc_write_response(buf[0], SW_SUCCESS);
printf1(TAG_NFC, "APDU chaining ok. %d/%d\r\n", apdu.lc, chain_buffer_len);
return;
}

// if we have ISO 7816 APDU chain - move there all the data
if (!chain_buffer_tx && chain_buffer_len > 0) {
delay(1);
memmove(&apdu.data[chain_buffer_len], apdu.data, apdu.lc);
memmove(apdu.data, chain_buffer, chain_buffer_len);
apdu.lc += chain_buffer_len; // here apdu struct does not match with memory!
Expand Down

0 comments on commit 5d3914b

Please sign in to comment.