We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1e6de commit dbbe27fCopy full SHA for dbbe27f
src/canmatrix/formats/dbc.py
@@ -860,7 +860,7 @@ def add_frame_by_id(new_frame): # type: (canmatrix.Frame) -> None
860
temp.group(2)).add_attribute(
861
temp.group(1),
862
temp.group(3))
863
- elif decoded.find('"BusType"') != -1:
+ elif '"BusType"' in decoded:
864
regexp = re.compile(r"^BA_ +\"BusType\" +\"(.+?)\" *; *")
865
temp = regexp.match(decoded)
866
if temp:
0 commit comments