Skip to content

Commit 61fb630

Browse files
committed
extruder: Flush step generation before changing non-linear extrusion parameters
1 parent 27acd85 commit 61fb630

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

klippy/kinematics/extruder.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ def cmd_SET_PRESSURE_ADVANCE(self, gcmd):
210210
def cmd_SET_NONLINEAR_EXTRUSION(self, gcmd):
211211
a = gcmd.get_float('A', self.nonlinear_a)
212212
b = gcmd.get_float('B', self.nonlinear_b)
213+
214+
toolhead = self.printer.lookup_object('toolhead')
215+
toolhead.flush_step_generation()
213216
self._set_nonlinear_extrusion(a, b)
217+
214218
msg = ("a: %.6f\n"
215219
"b: %.6f"
216220
% (a, b))

0 commit comments

Comments
 (0)