This commit is contained in:
Your Name
2025-05-07 18:25:30 +02:00
parent ba889feee9
commit a73eb30d32
2 changed files with 4 additions and 4 deletions

View File

@@ -12,9 +12,9 @@ GPIO 20 -> SARA PWR ON
option 1: option 1:
CLI tool like pinctrl CLI tool like pinctrl
pinctrl set 17 op pinctrl set 16 op
pinctrl set 17 dh pinctrl set 16 dh
pinctrl set 17 dl pinctrl set 16 dl
option 2: option 2:
python library RPI.GPIO python library RPI.GPIO

View File

@@ -132,7 +132,7 @@ def run_script(script_name, interval, delay=0):
if not is_script_locked(): if not is_script_locked():
create_lock_file() create_lock_file()
try: try:
subprocess.run(["python3", script_path]) subprocess.run(["python3", script_path], timeout=200)
finally: finally:
remove_lock_file() remove_lock_file()
else: else: