From a499ac0f0d703953f1d7d7c3273f0c2e5ae7cec8 Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Thu, 13 Jun 2024 16:14:46 +0800 Subject: [PATCH] need this --- selfdrive/ui/qt/onroad/annotated_camera.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/onroad/annotated_camera.cc b/selfdrive/ui/qt/onroad/annotated_camera.cc index 1c6df41d0..d85297cc1 100644 --- a/selfdrive/ui/qt/onroad/annotated_camera.cc +++ b/selfdrive/ui/qt/onroad/annotated_camera.cc @@ -109,6 +109,7 @@ void AnnotatedCameraWidget::updateState(const UIState &s) { } #ifdef DP + knight_scanner->update_states(s); personality_btn->update_states(s); rainbow_path->update_states(s); flight_panel->update_states(s, is_metric); @@ -274,8 +275,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) { #ifdef DP if (rainbow_path->is_enabled()) { rainbow_path->paint(bg); - } - else if (sm["controlsState"].getControlsState().getExperimentalMode()) { + } else if (sm["controlsState"].getControlsState().getExperimentalMode()) { #else if (sm["controlsState"].getControlsState().getExperimentalMode()) { #endif