self.invalidate()
self.poll_timer = eTimer()
self.poll_timer.callback.append(self.updateFrontendStatus)
- self.poll_timer.start(update_interval)
+ self.poll_timer.start(update_interval, True)
def invalidate(self):
self.snr = self.agc = self.ber = self.lock = self.snr_db = None
self.ber = status.get("tuner_bit_error_rate")
self.lock = status.get("tuner_locked")
self.changed((self.CHANGED_ALL, ))
+ self.poll_timer.start(self.update_interval, True)
def getFrontendStatus(self):
if self.frontend_source:
if suspended:
self.poll_timer.stop()
else:
- self.poll_timer.start(self.update_interval)
+ self.updateFrontendStatus()
def destroy(self):
self.poll_timer.callback.remove(self.updateFrontendStatus)
+ Source.destroy(self)