UI: maintain frequency before vipc is connected (#21704)

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b13f5e6328
commatwo_master
Adeeb Shihadeh 4 years ago committed by GitHub
parent ae1b7a85f3
commit 82c9f6734b
  1. 2
      selfdrive/ui/ui.cc

@ -224,6 +224,8 @@ static void update_vision(UIState *s) {
} else if (!Hardware::PC()) {
LOGE("visionIPC receive timeout");
}
} else if (s->scene.started) {
util::sleep_for(1000. / UI_FREQ);
}
}

Loading…
Cancel
Save