Fixed crash on debug when no Rgb was used, and unloaded LED and RGB when not used to save ram
This commit is contained in:
parent
d34e8ce9d2
commit
d07560513f
@ -350,10 +350,10 @@ class Firmware:
|
||||
if self._state.hid_pending:
|
||||
self._send_hid()
|
||||
|
||||
if self.pixels and self.pixels.animation_mode:
|
||||
if self.pixels and self.pixels.enabled and self.pixels.animation_mode:
|
||||
self.pixels = self.pixels.animate()
|
||||
|
||||
if self.led and self.led.animation_mode:
|
||||
if self.led and self.led.enabled and self.led.animation_mode:
|
||||
self.led = self.led.animate()
|
||||
|
||||
if state_changed:
|
||||
|
Loading…
Reference in New Issue
Block a user