fix delay in fadeto,fadeby

This commit is contained in:
onyx-and-iris 2022-07-02 02:00:52 +01:00
parent 12281a58c8
commit c7c4b199cb

View File

@ -82,11 +82,11 @@ class Strip(IRemote):
def fadeto(self, target: float, time_: int): def fadeto(self, target: float, time_: int):
self.setter("FadeTo", f"({target}, {time_})") self.setter("FadeTo", f"({target}, {time_})")
time.sleep(self._remote.delay) time.sleep(self._remote.DELAY)
def fadeby(self, change: float, time_: int): def fadeby(self, change: float, time_: int):
self.setter("FadeBy", f"({change}, {time_})") self.setter("FadeBy", f"({change}, {time_})")
time.sleep(self._remote.delay) time.sleep(self._remote.DELAY)
class PhysicalStrip(Strip): class PhysicalStrip(Strip):