Browse Source

Ignore homing button when SD printing

As suggested in #5404 by @android444
Scott Lahteine 8 years ago
parent
commit
83c5026db1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

@@ -9972,7 +9972,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
9972 9972
     // ---------------------------------------------------------
9973 9973
     static int homeDebounceCount = 0;   // poor man's debouncing count
9974 9974
     const int HOME_DEBOUNCE_DELAY = 2500;
9975
-    if (!READ(HOME_PIN)) {
9975
+    if (!IS_SD_PRINTING && !READ(HOME_PIN)) {
9976 9976
       if (!homeDebounceCount) {
9977 9977
         enqueue_and_echo_commands_P(PSTR("G28"));
9978 9978
         LCD_MESSAGEPGM(MSG_AUTO_HOME);

Loading…
Cancel
Save