mirror of
https://github.com/RfidResearchGroup/ChameleonUltra.git
synced 2026-05-12 11:22:59 -07:00
fix: hf mf eview param error due to chunk exceeding 32-block limit
The firmware limits mf1_read_emu_block_data to at most 32 blocks per request, but eview's chunk_count only honored data_max_length (256). Added the same 32-block cap already used by esave.
This commit is contained in:
@@ -3798,7 +3798,7 @@ class HFMFEView(SlotIndexArgsAndGoUnit, DeviceRequiredUnit):
|
||||
max_blocks = self.device_com.data_max_length // 16
|
||||
while block_count > 0:
|
||||
# read all the blocks
|
||||
chunk_count = min(block_count, max_blocks)
|
||||
chunk_count = min(block_count, max_blocks, 32)
|
||||
data.extend(self.cmd.mf1_read_emu_block_data(index, chunk_count))
|
||||
index += chunk_count
|
||||
block_count -= chunk_count
|
||||
|
||||
Reference in New Issue
Block a user