aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-12-06 01:00:33 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-01-28 12:19:26 -0500
commitce9db609ad6f0f99c171b643464fe1e6963ec6c6 (patch)
tree5cc4ea8158c441b451e12619fc6d08a46a97bc86 /klippy/mcu.py
parent6c252d30f5530982db0986b79f8eb1895f7d48f0 (diff)
downloadkutter-ce9db609ad6f0f99c171b643464fe1e6963ec6c6.tar.gz
kutter-ce9db609ad6f0f99c171b643464fe1e6963ec6c6.tar.xz
kutter-ce9db609ad6f0f99c171b643464fe1e6963ec6c6.zip
probe: Initial support for Z-Probe hardware
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index c4f9d969..40fcbad7 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -99,7 +99,7 @@ class MCU_stepper:
pos = params['pos']
if self._invert_dir:
pos = -pos
- self._mcu_position_offset = pos - self._commanded_pos
+ self._commanded_pos = pos - self._mcu_position_offset
def step(self, print_time, sdir):
count = self._ffi_lib.stepcompress_push(
self._stepqueue, print_time, sdir)