The help for hf mf sim says that if -i is passed, "Console will not be returned until simulation finishes or is aborted." However, when using interactive with the reader attack option (hf mf sim -ix), the console does not return when the simulation is finished or when the button is pressed.
This seems to be because in cmdhfmf.c, it continues waiting for more CMD_ACKs after processing the information from the device, while the device only sends CMD_ACK once (after the simulation is finished or the button is pressed.) Adding break after the readerAttack line seems to fix this, and doesn't seem to cause any other issues.
The help for
hf mf sim
says that if-i
is passed, "Console will not be returned until simulation finishes or is aborted." However, when using interactive with the reader attack option (hf mf sim -ix
), the console does not return when the simulation is finished or when the button is pressed.This seems to be because in
cmdhfmf.c
, it continues waiting for moreCMD_ACK
s after processing the information from the device, while the device only sendsCMD_ACK
once (after the simulation is finished or the button is pressed.) Addingbreak
after thereaderAttack
line seems to fix this, and doesn't seem to cause any other issues.