Skip to content
Snippets Groups Projects
Commit 0f64c18d authored by Florian Pose's avatar Florian Pose
Browse files

Adapted to new entry syntax.

parent c19f0c6d
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ class Device:
reRevision = re.compile('Revision number:.*\((\d+)\)')
rePdo = re.compile('([RT])xPdo\s+0x([0-9A-F]+)')
rePdoEntry = \
re.compile('0x([0-9A-F]+):([0-9A-F]+) +"([^"]*)", (\d+) bit')
re.compile('0x([0-9A-F]+):([0-9A-F]+),\s+(\d+) bit,\s+"([^"]*)"')
pdo = None
f = open(fileName, 'r')
while True:
......@@ -139,8 +139,8 @@ class Device:
match = rePdoEntry.search(line)
if match:
pdoEntry = PdoEntry(int(match.group(1), 16), \
int(match.group(2), 16), match.group(3), \
int(match.group(4)))
int(match.group(2), 16), match.group(4), \
int(match.group(3)))
pdo.appendEntry(pdoEntry)
f.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment