Skip to content

Commit

Permalink
extruder: Flush step generation before changing non-linear extrusion …
Browse files Browse the repository at this point in the history
…parameters

Signed-off-by: Tobias Haegermarck <tobias.haegermarck@gmail.com>
  • Loading branch information
Tobba committed May 24, 2021
1 parent 27acd85 commit ef878f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions klippy/kinematics/extruder.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ def cmd_SET_PRESSURE_ADVANCE(self, gcmd):
def cmd_SET_NONLINEAR_EXTRUSION(self, gcmd):
a = gcmd.get_float('A', self.nonlinear_a)
b = gcmd.get_float('B', self.nonlinear_b)

toolhead = self.printer.lookup_object('toolhead')
toolhead.flush_step_generation()
self._set_nonlinear_extrusion(a, b)

msg = ("a: %.6f\n"
"b: %.6f"
% (a, b))
Expand Down

0 comments on commit ef878f6

Please sign in to comment.