From 4e07fc2b3151df704d1730f288743a16fbcbd4fd Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 27 May 2025 09:43:11 +0200 Subject: [PATCH] if enabled but no delay, then disable tear off just in case. enforce user to set a delay. if not this function will be triggered over and over which might confuse users normal operation --- armsrc/appmain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 774014d6a..5537cff79 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -99,6 +99,7 @@ int tearoff_hook(void) { if (g_tearoff_enabled) { if (g_tearoff_delay_us == 0) { Dbprintf(_RED_("No tear-off delay configured!")); + g_tearoff_enabled = false; return PM3_SUCCESS; // SUCCESS = the hook didn't do anything } SpinDelayUsPrecision(g_tearoff_delay_us);