ui: fill the bg with disengaged color if not started (#35434)

fill the bg with disengaged color if not started
This commit is contained in:
Dean Lee
2025-06-04 02:07:42 +08:00
committed by GitHub
parent 5505338ffb
commit 10dc40db04
+2 -1
View File
@@ -45,7 +45,8 @@ class AugmentedRoadView(CameraView):
def render(self, rect):
# Only render when system is started to avoid invalid data access
if not ui_state.started:
if not ui_state.started or not self.frame:
rl.draw_rectangle_rec(rect, BORDER_COLORS[UIStatus.DISENGAGED])
return
# Update calibration before rendering