From 3e15472e054afa804ea420448205ce89518453f3 Mon Sep 17 00:00:00 2001 From: InsanityAutomation Date: Wed, 10 Apr 2024 15:12:02 -0400 Subject: [PATCH] Update MarlinCore.cpp --- Marlin/src/MarlinCore.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Marlin/src/MarlinCore.cpp b/Marlin/src/MarlinCore.cpp index b3c8d5d9d0..97e7c32bf6 100644 --- a/Marlin/src/MarlinCore.cpp +++ b/Marlin/src/MarlinCore.cpp @@ -484,7 +484,6 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) { #endif static int killCount = 0; // make the inactivity button a bit less responsive - const int killDelay = KILL_DELAY; if (kill_state()) killCount++; else if (killCount > 0) @@ -493,7 +492,7 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) { // Exceeded threshold and we can confirm that it was not accidental // KILL the machine // ---------------------------------------------------------------- - if (killCount >= killDelay) { + if (killCount >= KILL_DELAY) { SERIAL_ERROR_START(); SERIAL_ECHOPGM(STR_KILL_PRE); SERIAL_ECHOLNPGM(STR_KILL_BUTTON);