Skip to content

Commit

Permalink
debug why eon is rebooting during drive
Browse files Browse the repository at this point in the history
  • Loading branch information
arne182 authored Jul 15, 2019
1 parent 6d058de commit 7ffc55b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions selfdrive/updated.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from selfdrive.swaglog import cloudlog
import selfdrive.kegman_conf as kegman
import os
import selfdrive.crash as crash

NICE_LOW_PRIORITY = ["nice", "-n", "19"]
def main(gctx=None):
Expand Down Expand Up @@ -53,6 +54,7 @@ def main(gctx=None):
msg = messaging.recv_sock(manager_sock, wait=True)
if msg:
if "controlsd" not in msg.managerData.runningProcesses and msg.managerData.runningProcesses != []:
crash.capture_warning(msg.managerData.runningProcesses)
NEED_REBOOT = False
os.system('reboot')

Expand Down

0 comments on commit 7ffc55b

Please sign in to comment.