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))