Skip to content

Commit

Permalink
python script: add fast dump
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Nov 7, 2024
1 parent 13c8ca7 commit a6c2535
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion client/pyscripts/fm11rf08_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,20 @@ def readBlocks(bdkey):

lprint("\n Load blocks {0..63, 128..135}[64+8=72] from the card")

# Try fast dump first
blkn_todo = blkn
p.console(f"hf mf ecfill -c 4 --key {bdkey}")
for line in p.grabbed_output.split('\n'):
if "ok" in line:
p.console("hf mf eview")
for line in p.grabbed_output.split('\n'):
if " | " in line and "sec | blk | data" not in line:
lsub = line[11:83]
data.append(lsub)
blkn_todo = list(range(128, 135+1))

bad = 0
for n in blkn:
for n in blkn_todo:
cmd = f"hf mf rdbl -c 4 --key {bdkey} --blk {n}"
lprint(f"`{cmd}`", flush=True, log=False)

Expand Down

0 comments on commit a6c2535

Please sign in to comment.