mirror of https://github.com/Desuuuu/klipper.git
clocksync: Remove no longer used get_adjusted_freq() function
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
62fcc5a56f
commit
b3cfe55b39
|
@ -125,8 +125,6 @@ class ClockSync:
|
|||
return int(print_time * self.mcu_freq)
|
||||
def clock_to_print_time(self, clock):
|
||||
return clock / self.mcu_freq
|
||||
def get_adjusted_freq(self):
|
||||
return self.mcu_freq
|
||||
# system time conversions
|
||||
def get_clock(self, eventtime):
|
||||
sample_time, clock, freq = self.clock_est
|
||||
|
@ -188,9 +186,6 @@ class SecondarySync(ClockSync):
|
|||
def clock_to_print_time(self, clock):
|
||||
adjusted_offset, adjusted_freq = self.clock_adj
|
||||
return clock / adjusted_freq + adjusted_offset
|
||||
def get_adjusted_freq(self):
|
||||
adjusted_offset, adjusted_freq = self.clock_adj
|
||||
return adjusted_freq
|
||||
# misc commands
|
||||
def dump_debug(self):
|
||||
adjusted_offset, adjusted_freq = self.clock_adj
|
||||
|
|
|
@ -661,8 +661,6 @@ class MCU:
|
|||
return self._clocksync.clock_to_print_time(clock)
|
||||
def estimated_print_time(self, eventtime):
|
||||
return self._clocksync.estimated_print_time(eventtime)
|
||||
def get_adjusted_freq(self):
|
||||
return self._clocksync.get_adjusted_freq()
|
||||
def clock32_to_clock64(self, clock32):
|
||||
return self._clocksync.clock32_to_clock64(clock32)
|
||||
# Restarts
|
||||
|
|
Loading…
Reference in New Issue