瀏覽代碼

Also reset LA10C when disabling LA with K0

As pointed out by @leptun, with MMUs the combination of old/new filament
profiles in the same print is a likely scenario as we transition towards
LA1.5. Reset the detection state also with K0.
Yuri D'Elia 4 年之前
父節點
當前提交
2f4f4547c6
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Firmware/Marlin_main.cpp

+ 2 - 1
Firmware/Marlin_main.cpp

@@ -2072,9 +2072,10 @@ inline void gcode_M900() {
         SERIAL_ECHOLNPGM("K out of allowed range!");
 #else
     if (newK == 0)
+    {
         extruder_advance_K = 0;
-    else if (newK == -1)
         la10c_reset();
+    }
     else
     {
         newK = la10c_value(newK);