From 08e112f538d0d51b7f32038283f3aaee49136643 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 30 Oct 2023 20:16:33 +0100 Subject: [PATCH] Fixed telemeter rendering --- sbapp/sideband/sense.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sbapp/sideband/sense.py b/sbapp/sideband/sense.py index cad80b3..c4ba04c 100644 --- a/sbapp/sideband/sense.py +++ b/sbapp/sideband/sense.py @@ -183,12 +183,11 @@ class Sensor(): @property def data(self): - if not self.synthesized: - if self._data == None or (self._stale_time != None and time.time() > self.last_update+self._stale_time): - try: - self.update_data() - except: - pass + if self._data == None or (not self.synthesized and (self._stale_time != None and time.time() > self.last_update+self._stale_time)): + try: + self.update_data() + except: + pass self.last_read = time.time() return self._data