idex_modes: A small fix for MOVE_SPEED param
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
This commit is contained in:
parent
6f7c743615
commit
55d09771b1
|
@ -161,7 +161,7 @@ class DualCarriages:
|
||||||
saved_state = self.saved_states.get(state_name)
|
saved_state = self.saved_states.get(state_name)
|
||||||
if saved_state is None:
|
if saved_state is None:
|
||||||
raise gcmd.error("Unknown DUAL_CARRIAGE state: %s" % (state_name,))
|
raise gcmd.error("Unknown DUAL_CARRIAGE state: %s" % (state_name,))
|
||||||
move_speed = gcmd.get('MOVE_SPEED', 0., above=0.)
|
move_speed = gcmd.get_float('MOVE_SPEED', 0., above=0.)
|
||||||
toolhead = self.printer.lookup_object('toolhead')
|
toolhead = self.printer.lookup_object('toolhead')
|
||||||
toolhead.flush_step_generation()
|
toolhead.flush_step_generation()
|
||||||
pos = toolhead.get_position()
|
pos = toolhead.get_position()
|
||||||
|
|
Loading…
Reference in New Issue