Merge pull request #2 from esaulenka/fix_DCB_parser
Fix parsing complicated DBCs
This commit is contained in:
commit
853addb1eb
|
@ -64,6 +64,10 @@ public class DbcFile {
|
||||||
// skipping header line
|
// skipping header line
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (!tokens[1].equals("SG_")) {
|
||||||
|
// will parse only signal descriptions
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (tokens.length < 4)
|
if (tokens.length < 4)
|
||||||
throw new IllegalStateException("Failing to parse comment: " + line + " at " + lineIndex);
|
throw new IllegalStateException("Failing to parse comment: " + line + " at " + lineIndex);
|
||||||
int id = Integer.parseInt(tokens[2]);
|
int id = Integer.parseInt(tokens[2]);
|
||||||
|
|
Loading…
Reference in New Issue