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