From 8f536d66552325fa12bd49615d64aa96d3d0975d Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 11 Oct 2020 10:19:20 +0200 Subject: [PATCH] hf mfu otptear - interruptable with keyboard --- client/src/cmdhfmfu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/cmdhfmfu.c b/client/src/cmdhfmfu.c index 621843622..ad3e0faa8 100644 --- a/client/src/cmdhfmfu.c +++ b/client/src/cmdhfmfu.c @@ -2894,6 +2894,12 @@ static int CmdHF14AMfuOtpTearoff(const char *Cmd) { uint32_t actualTime = startTime; 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); clearCommandBuffer();