Skip to content

Commit 9aec8b0

Browse files
committed
There was another for loop that shadowed obj
1 parent baca227 commit 9aec8b0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/dbc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,10 @@ void DbcParser::parse_dbc_messages(const std::vector<std::string>& lines) {
279279
}
280280
}
281281

282-
for (const auto& obj : sv) {
282+
for (const auto& signal : sv) {
283283
for (auto& msg : messages) {
284-
if (msg.id() == obj.can_id) {
285-
msg.addValueDescription(obj.signal_name, obj.vd);
284+
if (msg.id() == signal.can_id) {
285+
msg.addValueDescription(signal.signal_name, signal.vd);
286286
break;
287287
}
288288
}

0 commit comments

Comments
 (0)