mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-09 03:00:07 -04:00
Merge pull request #1633 from Giraut/master
Encode ISO15693 response as tag byte by byte, instead of 2 bytes by 2…
This commit is contained in:
@@ -252,11 +252,9 @@ void CodeIso15693AsTag(const uint8_t *cmd, size_t len) {
|
||||
ts->buf[++ts->max] = 0x1D; // 00011101
|
||||
|
||||
// data
|
||||
for (size_t i = 0; i < len; i += 2) {
|
||||
for (size_t i = 0; i < len; i ++) {
|
||||
ts->buf[++ts->max] = encode_4bits[cmd[i] & 0xF];
|
||||
ts->buf[++ts->max] = encode_4bits[cmd[i] >> 4];
|
||||
ts->buf[++ts->max] = encode_4bits[cmd[i + 1] & 0xF];
|
||||
ts->buf[++ts->max] = encode_4bits[cmd[i + 1] >> 4];
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
||||
Reference in New Issue
Block a user