瀏覽代碼

Code reduction this some configurations

When switching noozle and extruder but these operations are done by the same servo in 'setup' function there is a unnecessary call
GMagician 7 年之前
父節點
當前提交
b94a1c6b9f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/Marlin_main.cpp

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

@@ -13484,7 +13484,7 @@ void setup() {
13484 13484
     setup_endstop_interrupts();
13485 13485
   #endif
13486 13486
 
13487
-  #if ENABLED(SWITCHING_EXTRUDER)
13487
+  #if ENABLED(SWITCHING_EXTRUDER) && !DONT_SWITCH
13488 13488
     move_extruder_servo(0);  // Initialize extruder servo
13489 13489
   #endif
13490 13490
 

Loading…
取消
儲存