Skip to content

Commit

Permalink
rebase master
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee committed Sep 1, 2024
1 parent b287c8b commit 031e136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/ui/qt/onroad/dmon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ DriverMonitorRenderer::DriverMonitorRenderer() : face_kpts_draw(std::size(DEFAUL

void DriverMonitorRenderer::updateState(const UIState &s) {
auto &sm = *(s.sm);
is_visible = sm["controlsState"].getControlsState().getAlertSize() == cereal::ControlsState::AlertSize::NONE &&
sm.rcv_frame("driverStateV2") > s.scene.started_frame;
is_visible = sm["selfdriveState"].getSelfdriveState().getAlertSize() == cereal::SelfdriveState::AlertSize::NONE &&
sm.rcv_frame("driverStateV2") > s.scene.started_frame;
if (!is_visible) return;

auto dm_state = sm["driverMonitoringState"].getDriverMonitoringState();
Expand Down

0 comments on commit 031e136

Please sign in to comment.