mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-06 21:32:08 +08:00
don't check dMonitorState's frame if frontview is false (#19584)
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