mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-10 16:43:08 +00:00
🩹 Reduce Kill Pin Wait (#26945)
Reduce kill pin wait time, and allow override by setting KILL_DELAY
This commit is contained in:
parent
2715e5ba1b
commit
6575dcc803
1 changed files with 8 additions and 3 deletions
|
@ -474,11 +474,16 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) {
|
||||||
|
|
||||||
#if HAS_KILL
|
#if HAS_KILL
|
||||||
|
|
||||||
// Check if the kill button was pressed and wait just in case it was an accidental
|
// Check if the kill button was pressed and wait to ensure the signal is not noise
|
||||||
// key kill key press
|
// typically caused by poor insulation and grounding on LCD cables.
|
||||||
|
// Lower numbers here will increase response time and therefore safety rating.
|
||||||
|
// It is recommended to set this as low as possibe without false triggers.
|
||||||
// -------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------
|
||||||
|
#ifndef KILL_DELAY
|
||||||
|
#define KILL_DELAY 250
|
||||||
|
#endif
|
||||||
|
|
||||||
static int killCount = 0; // make the inactivity button a bit less responsive
|
static int killCount = 0; // make the inactivity button a bit less responsive
|
||||||
const int KILL_DELAY = 750;
|
|
||||||
if (kill_state())
|
if (kill_state())
|
||||||
killCount++;
|
killCount++;
|
||||||
else if (killCount > 0)
|
else if (killCount > 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue