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:
Kyle Brown 2019-07-12 16:19:27 -07:00
parent d34e8ce9d2
commit d07560513f

View File

@ -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: