From 6d2eb1761f840af8bd123397bd1616ffa2e4bcc8 Mon Sep 17 00:00:00 2001 From: Eremita Solitario Date: Sat, 9 Sep 2023 23:32:53 +0200 Subject: [PATCH] Solved bug that makes hf mf eread command crashes --- software/script/chameleon_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/script/chameleon_cmd.py b/software/script/chameleon_cmd.py index 27b2aea..2ea7ffd 100644 --- a/software/script/chameleon_cmd.py +++ b/software/script/chameleon_cmd.py @@ -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):