diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-03-30 12:51:10 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-03-30 12:51:10 -0400 |
commit | 7fc9ba7d3a2bce4714fac698d0474e49b2e0e868 (patch) | |
tree | 7a9818796714f61f7cbef363032ba845611565e5 | |
parent | 63b6bab5c3c42462d31f0fc65ae58444bbb59805 (diff) | |
download | kutter-7fc9ba7d3a2bce4714fac698d0474e49b2e0e868.tar.gz kutter-7fc9ba7d3a2bce4714fac698d0474e49b2e0e868.tar.xz kutter-7fc9ba7d3a2bce4714fac698d0474e49b2e0e868.zip |
mcu: Log the mcu clock each time print_time is synchronized
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/mcu.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py index 4d444f4c..530da118 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -570,7 +570,10 @@ class MCU: return MCU_adc(self, pin) # Clock syncing def set_print_start_time(self, eventtime): - est_mcu_time = self.serial.get_clock(eventtime) / self._mcu_freq + clock = self.serial.get_clock(eventtime) + logging.info("Synchronizing mcu clock at %.6f to %d" % ( + eventtime, clock)) + est_mcu_time = clock / self._mcu_freq self._print_start_time = est_mcu_time def get_print_buffer_time(self, eventtime, print_time): if self.is_shutdown: |