diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index 3026e58e07..50a104eb69 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -137,7 +137,10 @@ static void update_state(UIState *s) { if (sm.updated("pandaState")) { auto pandaState = sm["pandaState"].getPandaState(); scene.pandaType = pandaState.getPandaType(); - scene.ignition = pandaState.getIgnitionLine() || pandaState.getIgnitionCan(); + + if (scene.pandaType != cereal::PandaState::PandaType::UNKNOWN) { + scene.ignition = pandaState.getIgnitionLine() || pandaState.getIgnitionCan(); + } } else if ((s->sm->frame - s->sm->rcv_frame("pandaState")) > 5*UI_FREQ) { scene.pandaType = cereal::PandaState::PandaType::UNKNOWN; }