mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 19:33:45 +08:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user