idex_modes: A small fix for MOVE_SPEED param

Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
This commit is contained in:
Dmitry Butyugin 2023-08-01 22:49:15 +03:00 committed by KevinOConnor
parent 6f7c743615
commit 55d09771b1
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class DualCarriages:
saved_state = self.saved_states.get(state_name)
if saved_state is None:
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.flush_step_generation()
pos = toolhead.get_position()