瀏覽代碼

Ignore homing button when SD printing

As suggested in #5404 by @android444
Scott Lahteine 7 年之前
父節點
當前提交
83c5026db1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp 查看文件

@@ -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…
取消
儲存