From 2f4f4547c6be924d011bb70620b5da971515525d Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Wed, 29 Apr 2020 22:56:06 +0200 Subject: [PATCH] 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. --- Firmware/Marlin_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 488639b9..ae775129 100755 --- a/Firmware/Marlin_main.cpp +++ b/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);