mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-18 11:43:42 +08:00
ui: fix false positive openpilot unavailable on startup (#38643)
This commit is contained in:
@@ -128,7 +128,7 @@ class AlertRenderer(Widget):
|
||||
|
||||
# 1. Never received selfdriveState since going onroad
|
||||
waiting_for_startup = recv_frame < ui_state.started_frame
|
||||
if waiting_for_startup and time_since_onroad > 5:
|
||||
if waiting_for_startup and time_since_onroad > 10:
|
||||
return ALERT_STARTUP_PENDING
|
||||
|
||||
# 2. Lost communication with selfdriveState after receiving it
|
||||
|
||||
@@ -92,7 +92,7 @@ class AlertRenderer(Widget):
|
||||
|
||||
# 1. Never received selfdriveState since going onroad
|
||||
waiting_for_startup = recv_frame < ui_state.started_frame
|
||||
if waiting_for_startup and time_since_onroad > 5:
|
||||
if waiting_for_startup and time_since_onroad > 10:
|
||||
return ALERT_STARTUP_PENDING
|
||||
|
||||
# 2. Lost communication with selfdriveState after receiving it
|
||||
|
||||
Reference in New Issue
Block a user