mirror of
https://github.com/RfidResearchGroup/ChameleonUltra.git
synced 2026-10-23 06:22:36 +00:00
blk_num is unused, which caused build to fail.
This commit is contained in:
1 file changed
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user