Update pushbutton.py fix ==

pull/442/head
Alan Johnston 2 months ago committed by GitHub
parent 3210f68435
commit 31954dc990
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save

Powered by TurnKey Linux.