blk_num is unused, which caused build to fail.

This commit is contained in:
DidierA committed 2026-06-18 20:06:34 +02:00
1 parent 6e2a902d0e
commit c3b08be5df
1 file changed
-3
-3
View File
@@ -2502,14 +2502,12 @@ static data_frame_tx_t *cmd_processor_hf14a_4_reader_apdu(uint16_t cmd, uint16_t
}
/* Copy data portion (strip PCB + CRC), then handle chaining */
uint8_t blk_num = 0;
uint8_t resp_pcb = resp_buf[0];
uint8_t dlen = resp_bytes - 3; /* subtract PCB(1) + CRC(2) */
if (dlen > 0 && resp_chain_len + dlen < sizeof(resp_chain)) {
memcpy(&resp_chain[resp_chain_len], &resp_buf[1], dlen);
resp_chain_len += dlen;
}
blk_num ^= 1;
/* ISO14443-4 chaining: PCB bit5 (0x20) set means more blocks follow */
while (resp_pcb & 0x20) {
@@ -2532,7 +2530,6 @@ static data_frame_tx_t *cmd_processor_hf14a_4_reader_apdu(uint16_t cmd, uint16_t
memcpy(&resp_chain[resp_chain_len], &resp_buf[1], dlen);
resp_chain_len += dlen;
}
blk_num ^= 1;
}
return data_frame_make(cmd, STATUS_HF_TAG_OK, resp_chain_len, resp_chain);