# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1212414946 0
# Node ID e2ee1bed5bd6d45b75a02d97448cae0b4ff1d5ef
# Parent  30fddfce8db6acb27273f1efc8af4d9b86989b33
Adapted to new entry syntax.

diff -r 30fddfce8db6 -r e2ee1bed5bd6 script/slaveinfo2xml.py
--- a/script/slaveinfo2xml.py	Mon Jun 02 11:08:49 2008 +0000
+++ b/script/slaveinfo2xml.py	Mon Jun 02 13:55:46 2008 +0000
@@ -112,7 +112,7 @@
         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 @@
             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()