Skip to content

Commit

Permalink
cabana: issue filtering by addresses in FindSignal tool (#34283)
Browse files Browse the repository at this point in the history
fixed filtering by addresses issue in cabana
  • Loading branch information
lukasloetkolben authored Dec 18, 2024
1 parent 17ca638 commit af50820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cabana/tools/findsignal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void FindSignalDlg::setInitialSignals() {
model->initial_signals.clear();

for (const auto &[id, m] : can->lastMessages()) {
if (buses.isEmpty() || buses.contains(id.source) && (addresses.isEmpty() || addresses.contains(id.address))) {
if ((buses.isEmpty() || buses.contains(id.source)) && (addresses.isEmpty() || addresses.contains(id.address))) {
const auto &events = can->events(id);
auto e = std::lower_bound(events.cbegin(), events.cend(), first_time, CompareCanEvent());
if (e != events.cend()) {
Expand Down

0 comments on commit af50820

Please sign in to comment.