aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-04-04 19:20:54 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-04-07 13:44:17 -0400
commite4153a536fe10671abc248d9e34347fbaccb2ec3 (patch)
tree7893e6ea92127e6a4ed07ac21a6f6c708bcec3ba /klippy/stepper.py
parent79f31238b047eeacc2321625e642421a86c62e68 (diff)
downloadkutter-e4153a536fe10671abc248d9e34347fbaccb2ec3.tar.gz
kutter-e4153a536fe10671abc248d9e34347fbaccb2ec3.tar.xz
kutter-e4153a536fe10671abc248d9e34347fbaccb2ec3.zip
mcu: Change mcu_stepper.set_position() to take a location in millimeters
Update the set_position() method to convert from millimeters to absolute step position. Also, update PrinterStepper.get_homed_offset() and mcu_stepper.get_commanded_position() to return millimeters. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index a5a10c7a..5bdcb374 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -99,4 +99,4 @@ class PrinterStepper:
raise homing.EndstopError(
"Endstop %s incorrect phase (got %d vs %d)" % (
self.name, pos, self.homing_endstop_phase))
- return delta
+ return delta * self.step_dist