File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def status():
121
121
sts = get_status ()
122
122
# getting reset log file
123
123
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 :
125
125
data = [x for x in log_file .read ().split ('\n ' ) if x ]
126
126
except Exception :
127
127
data = [] # if file doesn't exist, no restore as ever been performed. return empty data
@@ -220,6 +220,7 @@ def resetDefaultPrograms():
220
220
def reset ():
221
221
pi = pigpio .pi ('localhost' )
222
222
#simulating FALLING EDGE
223
+ # it triggers the reset by using the service altready running on the system that detects a button press (3 sec).
223
224
pi .write (BUTTON_PIN , 1 )
224
225
pi .write (BUTTON_PIN , 0 )
225
226
You can’t perform that action at this time.
0 commit comments