Bugfixes on hf iclass trbl

Fixed tearoff trigger staying enabled in case of keyboard interruption
This commit is contained in:
Antiklesys 2025-05-23 17:11:07 +08:00
commit 07bfef1550

View file

@ -3191,6 +3191,14 @@ out:
if (setDeviceDebugLevel(verbose ? MAX(dbg_curr, DBG_INFO) : DBG_NONE, false) != PM3_SUCCESS) { if (setDeviceDebugLevel(verbose ? MAX(dbg_curr, DBG_INFO) : DBG_NONE, false) != PM3_SUCCESS) {
return PM3_EFAILED; return PM3_EFAILED;
} }
// disable tearoff in case of keyboard abort, or it'll trigger on next operation
clearCommandBuffer();
tearoff_params_t params = {
.delay_us = tearoff_start,
.on = false,
.off = true
};
handle_tearoff(&params, false);
PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "");
return isok; return isok;
} }