Skip to content

Commit 14de7b2

Browse files
committed
Modified log directory
1 parent 30dda25 commit 14de7b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def status():
121121
sts = get_status()
122122
# getting reset log file
123123
try:
124-
with open('/home/pi/log/reset_trigger_service.log', 'r') as log_file:
124+
with open('/home/pi/coderbot/log/reset_trigger_service.log', 'r') as log_file:
125125
data = [x for x in log_file.read().split('\n') if x]
126126
except Exception:
127127
data = [] # if file doesn't exist, no restore as ever been performed. return empty data
@@ -220,6 +220,7 @@ def resetDefaultPrograms():
220220
def reset():
221221
pi = pigpio.pi('localhost')
222222
#simulating FALLING EDGE
223+
# it triggers the reset by using the service altready running on the system that detects a button press (3 sec).
223224
pi.write(BUTTON_PIN, 1)
224225
pi.write(BUTTON_PIN, 0)
225226

0 commit comments

Comments
 (0)