Skip to content

Commit

Permalink
Fixed #60
Browse files Browse the repository at this point in the history
  • Loading branch information
texx00 committed Oct 3, 2021
1 parent ce19993 commit 12a9442
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def stop(self):
"""Stops the light sensor from controlling the LED strip"""
self._is_running = False
self._history = []
self.app.lmanager.set_brightness(1)

def _thf(self):
while self._is_running:
Expand All @@ -41,6 +40,7 @@ def _thf(self):

self.app.logger.info("Averaged brightness: {}".format(brightness)) # FIXME remove this
self.app.lmanager.set_brightness(brightness)
self.app.lmanager.set_brightness(1)

def deinit(self):
"""Deinitializes the sensor hw"""
Expand Down

0 comments on commit 12a9442

Please sign in to comment.