Skip to content

Commit

Permalink
short variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee committed Dec 16, 2021
1 parent cefb21e commit 7f3cf52
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions selfdrive/ui/replay/replay.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ std::optional<uint64_t> Replay::find(FindFlag flag) {
bool cache_to_local = true; // cache qlog to local for fast seek
if (!log.load(route_->at(n).qlog.toStdString(), nullptr, cache_to_local, 0, 3)) continue;

for (const Event *evt : log.events) {
if (evt->mono_time > cur_mono_time_) {
for (const Event *e : log.events) {
if (e->mono_time > cur_mono_time_) {
if (flag == FindFlag::nextEngagement) {
if (evt->which == cereal::Event::Which::CONTROLS_STATE && evt->event.getControlsState().getEnabled()) {
return evt->mono_time;
if (e->which == cereal::Event::Which::CONTROLS_STATE && e->event.getControlsState().getEnabled()) {
return e->mono_time;
}
} else if (flag == FindFlag::nextDisEngagement) {
if (evt->which == cereal::Event::Which::CONTROLS_STATE && !evt->event.getControlsState().getEnabled()) {
return evt->mono_time;
if (e->which == cereal::Event::Which::CONTROLS_STATE && !e->event.getControlsState().getEnabled()) {
return e->mono_time;
}
}
}
Expand Down

0 comments on commit 7f3cf52

Please sign in to comment.