From d2abbd8f5d8f686dbdb29ef351ef39cce3f3e4d5 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 1 Dec 2016 17:37:13 -0500 Subject: [PATCH] extruder: Fix retract Commit 7554c7f6 broke retract moves. Fix by making sure extrude_r is always a positive number. Signed-off-by: Kevin O'Connor --- klippy/extruder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extruder.py b/klippy/extruder.py index 7d5a952d..12f77d85 100644 --- a/klippy/extruder.py +++ b/klippy/extruder.py @@ -36,7 +36,7 @@ class PrinterExtruder: self.stepper.motor_enable(move_time, 1) self.need_motor_enable = False axis_d = move.axes_d[3] - extrude_r = axis_d / move.move_d + extrude_r = abs(axis_d) / move.move_d inv_accel = 1. / (move.accel * extrude_r) start_v = move.start_v * extrude_r