From 62fcc5a56fb333fa44cda86c5a7fbfad9e9dd424 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 6 Mar 2020 16:33:54 -0500 Subject: [PATCH] mcu: Calculate homing rest_ticks via standard print_time_to_clock() call Signed-off-by: Kevin O'Connor --- klippy/mcu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/mcu.py b/klippy/mcu.py index 4064b8e0..06aa07c0 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -58,7 +58,7 @@ class MCU_endstop: def home_start(self, print_time, sample_time, sample_count, rest_time, triggered=True): clock = self._mcu.print_time_to_clock(print_time) - rest_ticks = int(rest_time * self._mcu.get_adjusted_freq()) + rest_ticks = self._mcu.print_time_to_clock(print_time+rest_time) - clock self._next_query_print_time = print_time + self.RETRY_QUERY self._min_query_time = self._reactor.monotonic() self._last_sent_time = 0.