mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-07 14:42:08 +08:00
don't check dMonitorState's frame if frontview is false (#19584)
old-commit-hash: 81369a65bb68d150197f28b6a132afbccee1e24a
This commit is contained in:
+1
-1
@@ -219,7 +219,7 @@ void update_sockets(UIState *s) {
|
||||
scene.dmonitoring_state = sm["dMonitoringState"].getDMonitoringState();
|
||||
scene.is_rhd = scene.dmonitoring_state.getIsRHD();
|
||||
scene.frontview = scene.dmonitoring_state.getIsPreview();
|
||||
} else if ((sm.frame - sm.rcv_frame("dMonitoringState")) > UI_FREQ/2) {
|
||||
} else if (scene.frontview && (sm.frame - sm.rcv_frame("dMonitoringState")) > UI_FREQ/2) {
|
||||
scene.frontview = false;
|
||||
}
|
||||
if (sm.updated("sensorEvents")) {
|
||||
|
||||
Reference in New Issue
Block a user