From ed6e0ba36724b2da389a5f8f88f09c47fc94f61c Mon Sep 17 00:00:00 2001 From: Dirk Moeller Date: Sat, 26 Sep 2020 15:22:05 +0200 Subject: [PATCH] make pin a bit less bouncy --- Marlin/src/MarlinCore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/MarlinCore.cpp b/Marlin/src/MarlinCore.cpp index 16e0ce2698..c902eb15c3 100644 --- a/Marlin/src/MarlinCore.cpp +++ b/Marlin/src/MarlinCore.cpp @@ -578,7 +578,7 @@ inline void manage_inactivity(const bool ignore_stepper_queue=false) { // Handle a custom user button if defined as part of a user-defined menu item #define HAS_CUSTOM_USER_BUTTON(N) ((defined(USER_GCODE_PIN_##N) && USER_GCODE_PIN_##N >= 0) && defined(USER_GCODE_PIN_STATE_##N) && defined(USER_GCODE_##N) && defined(USER_DESC_##N)) #define CHECK_CUSTOM_USER_BUTTON(N) do{ \ - constexpr millis_t CUB_DEBOUNCE_DELAY_##N = 1000UL; \ + constexpr millis_t CUB_DEBOUNCE_DELAY_##N = 2000UL; \ static millis_t next_cub_ms_##N; \ if (USER_GCODE_PIN_STATE_##N == READ(USER_GCODE_PIN_##N)) { \ const millis_t ms = millis(); \