remove duplicate call to getDMonitoringState (#1964)

This commit is contained in:
Dean Lee 2020-08-03 01:55:24 +08:00 committed by GitHub
parent 9ee1cc9b82
commit 56e63bafa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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