mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-22 22:24:02 -06:00
mcu: Move print_time to clock conversion code to clocksync.py
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
94bcd9735a
commit
f1b315e04f
3 changed files with 27 additions and 16 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue