update time from RTC on manager init (#20678)

* set time on manager init

* earlier

* handle exception

* logging

* add to release files

* run in launch script too

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1adf34f033bc1efb592383ebb2dbaef909bac60b
This commit is contained in:
Adeeb Shihadeh
2021-04-14 12:04:02 -07:00
committed by GitHub
parent b71290bbf7
commit f11dd415e8
4 changed files with 36 additions and 14 deletions
+5
View File
@@ -11,6 +11,7 @@ import selfdrive.crash as crash
from common.basedir import BASEDIR
from common.params import Params
from common.text_window import TextWindow
from selfdrive.boardd.set_time import set_time
from selfdrive.hardware import HARDWARE
from selfdrive.manager.helpers import unblock_stdout
from selfdrive.manager.process import ensure_running
@@ -21,6 +22,10 @@ from selfdrive.version import dirty, version
def manager_init():
# update system time from panda
set_time(cloudlog)
params = Params()
params.manager_start()