Ver Fonte

PFW-1386 if automatic = false, raising Z-axis is done via gcode

Guðni Már Gilbert há 2 anos atrás
pai
commit
d6564d3617
1 ficheiros alterados com 6 adições e 1 exclusões
  1. 6 1
      Firmware/ultralcd.cpp

+ 6 - 1
Firmware/ultralcd.cpp

@@ -5255,7 +5255,12 @@ void unload_filament(bool automatic)
 	lcd_setstatuspgm(_T(MSG_UNLOADING_FILAMENT));
 
     FSensorBlockRunout fsBlockRunout;
-    raise_z_above(automatic? MIN_Z_FOR_SWAP: MIN_Z_FOR_UNLOAD);
+
+    if (automatic)
+    {
+        // M600
+        raise_z_above(MIN_Z_FOR_SWAP);
+    }
 
 	//		extr_unload2();