extruder: step_distance must be positive on SET_EXTRUDER_STEP_DISTANCE

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-03-28 10:03:33 -04:00
parent 336af2f28d
commit 77177582cd
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class PrinterExtruder:
gcode.respond_info("Extruder '%s' step distance is %0.6f"
% (self.name, step_dist))
return
dist = gcode.get_float('DISTANCE', params, 0.)
dist = gcode.get_float('DISTANCE', params, above=0.)
toolhead.flush_step_generation()
self.stepper.set_step_dist(dist)
gcode.respond_info("Extruder '%s' step distance set to %0.6f"