rpi_temperature: Fix missing get_report_time_delta() callback

Reported by @ronald5555.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-01-24 14:00:41 -05:00
parent cf8d5a6606
commit c3e3b2280a
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ class RPiTemperature:
def setup_callback(self, cb): def setup_callback(self, cb):
self._callback = cb self._callback = cb
def get_report_time_delta(self):
return RPI_REPORT_TIME
def _sample_pi_temperature(self, eventtime): def _sample_pi_temperature(self, eventtime):
try: try:
self.file_handle.seek(0) self.file_handle.seek(0)