From 83c5026db122bf0546775969949ccd58360000fc Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 6 Dec 2016 14:22:34 -0600 Subject: [PATCH] Ignore homing button when SD printing As suggested in #5404 by @android444 --- Marlin/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 8ca8a1ff67..baa8c2f061 100755 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -9972,7 +9972,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) { // --------------------------------------------------------- static int homeDebounceCount = 0; // poor man's debouncing count const int HOME_DEBOUNCE_DELAY = 2500; - if (!READ(HOME_PIN)) { + if (!IS_SD_PRINTING && !READ(HOME_PIN)) { if (!homeDebounceCount) { enqueue_and_echo_commands_P(PSTR("G28")); LCD_MESSAGEPGM(MSG_AUTO_HOME);