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

Co-authored-by: Comma Device <device@comma.ai>
pull/21531/head
Adeeb Shihadeh 4 years ago committed by GitHub
parent f0389f7e2d
commit b13f5e6328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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