Skip to content

Commit

Permalink
Fix LEDs turning off on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
julianschill committed Apr 28, 2024
1 parent 164c97d commit 71d8b30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/led_effect.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def __init__(self, config):
self.iteration = 0
self.layers = []
self.analogValue = 0
self.fadeValue = 1.0
self.fadeValue = 0.0
self.fadeTime = 0.0
self.fadeEndTime = 0

Expand Down Expand Up @@ -375,6 +375,8 @@ def _handle_ready(self):
self.ledChains = []
self.leds = []
self.enabled = self.autoStart
if not self.enabled:
self.nextEventTime = self.handler.reactor.NEVER
self.printer.register_event_handler('klippy:shutdown',
self._handle_shutdown)
#map each LED from the chains to the "pixels" in the effect frame
Expand Down

0 comments on commit 71d8b30

Please sign in to comment.