clocksync: Remove no longer used get_adjusted_freq() function

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-03-06 16:35:02 -05:00
parent 62fcc5a56f
commit b3cfe55b39
2 changed files with 0 additions and 7 deletions

View File

@ -125,8 +125,6 @@ class ClockSync:
return int(print_time * self.mcu_freq) return int(print_time * self.mcu_freq)
def clock_to_print_time(self, clock): def clock_to_print_time(self, clock):
return clock / self.mcu_freq return clock / self.mcu_freq
def get_adjusted_freq(self):
return self.mcu_freq
# system time conversions # system time conversions
def get_clock(self, eventtime): def get_clock(self, eventtime):
sample_time, clock, freq = self.clock_est sample_time, clock, freq = self.clock_est
@ -188,9 +186,6 @@ class SecondarySync(ClockSync):
def clock_to_print_time(self, clock): def clock_to_print_time(self, clock):
adjusted_offset, adjusted_freq = self.clock_adj adjusted_offset, adjusted_freq = self.clock_adj
return clock / adjusted_freq + adjusted_offset return clock / adjusted_freq + adjusted_offset
def get_adjusted_freq(self):
adjusted_offset, adjusted_freq = self.clock_adj
return adjusted_freq
# misc commands # misc commands
def dump_debug(self): def dump_debug(self):
adjusted_offset, adjusted_freq = self.clock_adj adjusted_offset, adjusted_freq = self.clock_adj

View File

@ -661,8 +661,6 @@ class MCU:
return self._clocksync.clock_to_print_time(clock) return self._clocksync.clock_to_print_time(clock)
def estimated_print_time(self, eventtime): def estimated_print_time(self, eventtime):
return self._clocksync.estimated_print_time(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): def clock32_to_clock64(self, clock32):
return self._clocksync.clock32_to_clock64(clock32) return self._clocksync.clock32_to_clock64(clock32)
# Restarts # Restarts