From 2a15a358147b01778f2e269710975255313c89e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 9 Nov 2021 19:21:14 +0100 Subject: [PATCH] Update main.py --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 880d814..0165e23 100644 --- a/main.py +++ b/main.py @@ -70,10 +70,10 @@ def led_power_toggle(channel): global led_power if led_power == True: led_power = False + return False else: led_power = True - print('Led toggled: '+str(led_power)) - return led_power + return True def read_idle(): with open('./idle.txt', 'r') as f: @@ -114,7 +114,7 @@ if __name__ == '__main__': with open('./idle.txt', 'r') as f: idle_mode = f.readline() - print(str(led_power_toggle)) + print(led_power_toggle) if led_power_toggle == False: setColor(strip, Color(0,0,0))