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.
This commit is contained in:
Yuri D'Elia 2020-04-29 22:56:06 +02:00
parent 5082f2a36e
commit 2f4f4547c6

View File

@ -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);