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
This commit is contained in:
1 parent
744107035f
commit
4e07fc2b31
1 file changed
+1
@@ -99,6 +99,7 @@ int tearoff_hook(void) {
|
|||||||
if (g_tearoff_enabled) {
|
if (g_tearoff_enabled) {
|
||||||
if (g_tearoff_delay_us == 0) {
|
if (g_tearoff_delay_us == 0) {
|
||||||
Dbprintf(_RED_("No tear-off delay configured!"));
|
Dbprintf(_RED_("No tear-off delay configured!"));
|
||||||
|
g_tearoff_enabled = false;
|
||||||
return PM3_SUCCESS; // SUCCESS = the hook didn't do anything
|
return PM3_SUCCESS; // SUCCESS = the hook didn't do anything
|
||||||
}
|
}
|
||||||
SpinDelayUsPrecision(g_tearoff_delay_us);
|
SpinDelayUsPrecision(g_tearoff_delay_us);
|
||||||
|
|||||||
Reference in new issue
Block a user