Skip to content

Commit

Permalink
Fix bug introduced in led calls which would autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Feb 22, 2024
1 parent 83a9427 commit 061260c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyilluminate/illuminate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,8 @@ def turn_on_led(self, leds: Union[int, Iterable[int]]) -> None:
self.autoclear = False
self.autoclear = old_autoclear
self.autoupdate = old_autoupdate
self.update()
if old_autoupdate:
self.update()
self._led = leds

@property
Expand Down

0 comments on commit 061260c

Please sign in to comment.