block_count can't be move than 0xFF, simplify code

This commit is contained in:
Foxushka
2023-09-07 20:07:38 +03:00
parent b3e0afc555
commit 1ac071e449
2 changed files with 6 additions and 10 deletions
+1 -2
View File
@@ -631,8 +631,7 @@ class ChameleonCMD:
"""
Gets data for selected block range
"""
data = struct.pack('<BH', block_start, block_count)
return self.device.send_cmd_sync(DATA_CMD_READ_MF1_EMU_BLOCK_DATA, 0x00, data)
return self.device.send_cmd_sync(DATA_CMD_READ_MF1_EMU_BLOCK_DATA, 0x00, bytearray(block_start, block_count))
@expect_response(chameleon_status.Device.STATUS_DEVICE_SUCCESS)
def set_mf1_anti_collision_res(self, sak: bytearray, atqa: bytearray, uid: bytearray):