Merge pull request from neutralinsomniac/invert_led_blink

fix: apparently for the led, 0 is ON and 1 is OFF
This commit is contained in:
evilsocket 2019-11-18 15:56:50 +01:00 committed by GitHub
commit b5a148f287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,12 +44,12 @@ class Led(plugins.Plugin):
logging.debug("[led] using pattern '%s' ..." % pattern)
for c in pattern:
if c == ' ':
self._led(0)
else:
self._led(1)
else:
self._led(0)
time.sleep(self._delay / 1000.0)
# reset
self._led(1)
self._led(0)
def _worker(self):
while True: