|
@@ -59,16 +59,12 @@ void GcodeSuite::M900() {
|
59
|
59
|
}
|
60
|
60
|
#endif
|
61
|
61
|
|
62
|
|
- float &kref = planner.extruder_advance_K[tool_index];
|
|
62
|
+ float &kref = planner.extruder_advance_K[tool_index], newK = kref;
|
|
63
|
+ const float oldK = newK;
|
63
|
64
|
|
64
|
65
|
#if ENABLED(EXTRA_LIN_ADVANCE_K)
|
65
|
|
- float &lref = other_extruder_advance_K[tool_index];
|
66
|
|
- #endif
|
67
|
|
-
|
68
|
|
- const float oldK = kref;
|
69
|
|
- float newK = oldK;
|
70
|
66
|
|
71
|
|
- #if ENABLED(EXTRA_LIN_ADVANCE_K)
|
|
67
|
+ float &lref = other_extruder_advance_K[tool_index];
|
72
|
68
|
|
73
|
69
|
const bool old_slot = TEST(lin_adv_slot, tool_index), // The tool's current slot (0 or 1)
|
74
|
70
|
new_slot = parser.boolval('S', old_slot); // The passed slot (default = current)
|