Skip to content
Snippets Groups Projects
Commit 3ae8c2fc authored by Paulus Kruger's avatar Paulus Kruger
Browse files

Restart RECVTR on I2C timeout

parent 79ea6167
No related branches found
No related tags found
No related merge requests found
[Unit]
Description=receiver translator
After=multi-user.target
StartLimitIntervalSec=600
StartLimitBurst=5
[Service]
Type=simple
ExecStart=recvtr2
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target
......@@ -138,7 +138,9 @@ try:
if timeout>10:
print(i,timeout)
if timeout>60:
restart_I2C(i)
logging.error("I2C timeout!")
# restart_I2C(i)
RunTimer=False
# cnt+=1;
# if cnt==60*10*2:
# print("****** restart test *****")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment