aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
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)