Fix parsing complicated DBCs

This commit is contained in:
Alexey Esaulenko 2025-03-25 11:48:32 +04:00
parent 4497f054e5
commit 1a797bfd99
1 changed files with 7 additions and 3 deletions

View File

@ -64,6 +64,10 @@ public class DbcFile {
// skipping header line
continue;
}
if (!tokens[1].equals("SG_")) {
// will parse only signal descriptions
continue;
}
if (tokens.length < 4)
throw new IllegalStateException("Failing to parse comment: " + line + " at " + lineIndex);
int id = Integer.parseInt(tokens[2]);