Skip to content

Commit fd81d01

Browse files
committed
Reset route
1 parent 13f6914 commit fd81d01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def status():
126126
except Exception:
127127
data = [] # if file doesn't exist, no restore as ever been performed. return empty data
128128

129+
129130
return {
130131
"status": "ok",
131132
"internetConnectivity": sts["internet_status"],
@@ -218,6 +219,7 @@ def resetDefaultPrograms():
218219
## Reset
219220
def reset():
220221
pi = pigpio.pi('localhost')
222+
#simulating FALLING EDGE ...|¯|_|¯...
221223
pi.write(BUTTON_PIN, 1)
222224
pi.write(BUTTON_PIN, 0)
223225
pi.write(BUTTON_PIN, 1)

0 commit comments

Comments
 (0)