diff --git a/pushbutton.py b/pushbutton.py index 9d3a9302..88286044 100644 --- a/pushbutton.py +++ b/pushbutton.py @@ -161,7 +161,7 @@ GPIO.output(powerPin, 0) GPIO.setup(push_button, GPIO.IN, pull_up_down=GPIO.PUD_UP) read_config_ini() -if not GPIO.input(push_button) || hotspot_always_on = "yes": # if pushbutton is held down during boot or configured always on +if not GPIO.input(push_button) or hotspot_always_on = "yes": # if pushbutton is held down during boot or configured always on print("Activating WiFi access point!", flush=True) GPIO.output(powerPin, 1) sleep(0.1)