|
@@ -514,7 +514,6 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) {
|
514
|
514
|
constexpr millis_t HOME_DEBOUNCE_DELAY = 1000UL;
|
515
|
515
|
static millis_t next_home_key_ms; // = 0
|
516
|
516
|
if (!IS_SD_PRINTING() && !READ(HOME_PIN)) { // HOME_PIN goes LOW when pressed
|
517
|
|
- const millis_t ms = millis();
|
518
|
517
|
if (ELAPSED(ms, next_home_key_ms)) {
|
519
|
518
|
next_home_key_ms = ms + HOME_DEBOUNCE_DELAY;
|
520
|
519
|
LCD_MESSAGEPGM(MSG_AUTO_HOME);
|
|
@@ -526,7 +525,6 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) {
|
526
|
525
|
#if ENABLED(CUSTOM_USER_BUTTONS)
|
527
|
526
|
// Handle a custom user button if defined
|
528
|
527
|
const bool printer_not_busy = !printingIsActive();
|
529
|
|
- const millis_t ms = millis();
|
530
|
528
|
#define HAS_CUSTOM_USER_BUTTON(N) (PIN_EXISTS(BUTTON##N) && defined(BUTTON##N##_HIT_STATE) && defined(BUTTON##N##_GCODE))
|
531
|
529
|
#define HAS_BETTER_USER_BUTTON(N) HAS_CUSTOM_USER_BUTTON(N) && defined(BUTTON##N##_DESC)
|
532
|
530
|
#define _CHECK_CUSTOM_USER_BUTTON(N, CODE) do{ \
|