fix bug in call to cache in updater

This commit is contained in:
onyx-and-iris 2022-09-29 09:44:50 +01:00
parent eddccb66c5
commit 4c6fc2d396

View File

@ -29,16 +29,18 @@ class Updater(threading.Thread):
tuple( tuple(
not x not x
for x in comp( for x in comp(
self.cache["strip_level"], self._remote._strip_buf self._remote.cache["strip_level"], self._remote._strip_buf
) )
), ),
tuple( tuple(
not x not x
for x in comp(self.cache["bus_level"], self._remote._bus_buf) for x in comp(
self._remote.cache["bus_level"], self._remote._bus_buf
)
), ),
) )
self._remote.cache["strip_level"] = self._remote._strip_buf self._remote.cache["strip_level"] = self._remote._strip_buf
self._remote.cache["bus_level"] = self._remote._bus_buf self._remote.cache["bus_level"] = self._remote._bus_buf
self._remote.subject.notify("ldirty") self._remote.subject.notify("ldirty")
time.sleep(self._remote.ratelimit if self._remote.event.any() else 0.5) time.sleep(self._remote.ratelimit if self._remote.event.any() else 0.1)