remove duplicate call to getDMonitoringState (#1964)

old-commit-hash: 56e63bafa87995eb6795bd77df931a29bf89c684
This commit is contained in:
Dean Lee
2020-08-03 01:55:24 +08:00
committed by GitHub
parent 2f1d9daa9a
commit 3e083c1074
+2 -3
View File
@@ -362,10 +362,9 @@ void handle_message(UIState *s, SubMaster &sm) {
scene.driver_state = sm["driverState"].getDriverState();
}
if (sm.updated("dMonitoringState")) {
auto data = sm["dMonitoringState"].getDMonitoringState();
scene.dmonitoring_state = sm["dMonitoringState"].getDMonitoringState();
scene.is_rhd = data.getIsRHD();
scene.frontview = data.getIsPreview();
scene.is_rhd = scene.dmonitoring_state.getIsRHD();
scene.frontview = scene.dmonitoring_state.getIsPreview();
}
// timeout on frontview