mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-27 10:34:08 +08:00
fix old length for sim module
This commit is contained in:
parent
fea78ae95a
commit
14a0e0bc72
1 changed files with 9 additions and 0 deletions
|
@ -558,6 +558,15 @@ int16_t I2C_BufferRead(uint8_t *data, uint16_t len, uint8_t device_cmd, uint8_t
|
|||
case 1: {
|
||||
// Length (LSB)
|
||||
recv_len += *data;
|
||||
|
||||
// old packages..
|
||||
if (recv_len > 0x0200) {
|
||||
// [0] = len
|
||||
// [1] = data
|
||||
recv_len >>= 8;
|
||||
data++;
|
||||
}
|
||||
|
||||
// Adjust len if needed
|
||||
if (len > recv_len) {
|
||||
len = recv_len;
|
||||
|
|
Loading…
Reference in a new issue