aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-09-15 12:28:55 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-09-19 17:27:18 -0400
commitf1b315e04f5f8c6a7d3cb6a429f7cfa42c109171 (patch)
treef55a75e4378b228faca18b4203ae7acf68058313 /klippy/stepper.py
parent94bcd9735ac9b843a618267a6888830a9a90999e (diff)
downloadkutter-f1b315e04f5f8c6a7d3cb6a429f7cfa42c109171.tar.gz
kutter-f1b315e04f5f8c6a7d3cb6a429f7cfa42c109171.tar.xz
kutter-f1b315e04f5f8c6a7d3cb6a429f7cfa42c109171.zip
mcu: Move print_time to clock conversion code to clocksync.py
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index 1d0c0a50..8ccec18f 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -98,7 +98,8 @@ class PrinterHomingStepper(PrinterStepper):
def get_homing_speed(self):
# Round the configured homing speed so that it is an even
# number of ticks per step.
- dist_ticks = self.mcu_stepper.get_mcu().get_mcu_freq() * self.step_dist
+ adjusted_freq = self.mcu_stepper.get_mcu().get_adjusted_freq()
+ dist_ticks = adjusted_freq * self.step_dist
ticks_per_step = round(dist_ticks / self.homing_speed)
return dist_ticks / ticks_per_step
def get_homed_offset(self):