mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
hf mfu otptear - interruptable with keyboard
This commit is contained in:
parent
570afb90b4
commit
8f536d6655
1 changed files with 6 additions and 0 deletions
|
@ -2894,6 +2894,12 @@ static int CmdHF14AMfuOtpTearoff(const char *Cmd) {
|
||||||
uint32_t actualTime = startTime;
|
uint32_t actualTime = startTime;
|
||||||
|
|
||||||
while (actualTime <= (timeLimit - interval)) {
|
while (actualTime <= (timeLimit - interval)) {
|
||||||
|
|
||||||
|
if (kbd_enter_pressed()) {
|
||||||
|
PrintAndLogEx(INFO, "\naborted via keyboard!\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "Using tear-off delay " _GREEN_("%" PRIu32) " us", actualTime);
|
PrintAndLogEx(INFO, "Using tear-off delay " _GREEN_("%" PRIu32) " us", actualTime);
|
||||||
|
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue