mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 20:18:52 +00:00
LCD home button causes repeated homing (PR#175)
Fix: increased debounce delay.
This commit is contained in:
parent
b825567e0f
commit
0f149ea0c6
@ -6978,7 +6978,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
|||||||
// Check to see if we have to home, use poor man's debouncer
|
// Check to see if we have to home, use poor man's debouncer
|
||||||
// ---------------------------------------------------------
|
// ---------------------------------------------------------
|
||||||
static int homeDebounceCount = 0; // poor man's debouncing count
|
static int homeDebounceCount = 0; // poor man's debouncing count
|
||||||
const int HOME_DEBOUNCE_DELAY = 750;
|
const int HOME_DEBOUNCE_DELAY = 2500;
|
||||||
if (!READ(HOME_PIN)) {
|
if (!READ(HOME_PIN)) {
|
||||||
if (!homeDebounceCount) {
|
if (!homeDebounceCount) {
|
||||||
enqueuecommands_P(PSTR("G28"));
|
enqueuecommands_P(PSTR("G28"));
|
||||||
|
Loading…
Reference in New Issue
Block a user