Merge pull request #140 from aenigma-es/main

Solved bug that makes hf mf eread command crashes
This commit is contained in:
Philippe Teuwen
2023-09-09 23:59:23 +02:00
committed by GitHub
+1 -1
View File
@@ -631,7 +631,7 @@ class ChameleonCMD:
"""
Gets data for selected block range
"""
return self.device.send_cmd_sync(DATA_CMD_READ_MF1_EMU_BLOCK_DATA, 0x00, bytearray(block_start, block_count))
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):