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

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b13f5e6328
This commit is contained in:
Adeeb Shihadeh
2021-07-23 22:14:44 -07:00
committed by GitHub
parent ae1b7a85f3
commit 82c9f6734b
+2
View File
@@ -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);
}
}