diff --git a/selfdrive/ui/qt/maps/map_settings.cc b/selfdrive/ui/qt/maps/map_settings.cc index 793e55ac89..8936226e77 100644 --- a/selfdrive/ui/qt/maps/map_settings.cc +++ b/selfdrive/ui/qt/maps/map_settings.cc @@ -119,7 +119,7 @@ MapPanel::MapPanel(QWidget* parent) : QWidget(parent) { stack->addWidget(no_prime_widget); } connect(uiState(), &UIState::primeTypeChanged, [=](int prime_type) { - stack->setCurrentIndex(!custom_mapbox ? uiState()->prime_type ? 0 : 1 : 1); + stack->setCurrentIndex(!custom_mapbox ? uiState()->primeType() ? 0 : 1 : 1); }); QVBoxLayout *wrapper = new QVBoxLayout(this); diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index 792a1eb817..4e2cd7a82a 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -1397,7 +1397,6 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) { // paint path QLinearGradient bg(0, height(), 0, height() / 4); - float start_hue, end_hue; if (madsEnabled) { if (steerOverride && latActive) { bg.setColorAt(0.0, QColor::fromHslF(20 / 360., 0.94, 0.51, 0.17));