aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-03-06 16:33:54 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-03-06 16:33:54 -0500
commit62fcc5a56fb333fa44cda86c5a7fbfad9e9dd424 (patch)
treefb40ec8f86de65c5ab81dcac2673825084a2f836 /klippy/mcu.py
parenta61d483e21d07c2e1e8e536c09e87fd8492b71ae (diff)
downloadkutter-62fcc5a56fb333fa44cda86c5a7fbfad9e9dd424.tar.gz
kutter-62fcc5a56fb333fa44cda86c5a7fbfad9e9dd424.tar.xz
kutter-62fcc5a56fb333fa44cda86c5a7fbfad9e9dd424.zip
mcu: Calculate homing rest_ticks via standard print_time_to_clock() call
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 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.