Output Sdo index at entry.
authorFlorian Pose <fp@igh-essen.com>
Tue, 10 Jun 2008 09:08:24 +0000
changeset 983 efb947bd96f3
parent 982 861eb2810f56
child 984 9d9c339cbeb7
Output Sdo index at entry.
tools/Master.cpp
--- a/tools/Master.cpp	Tue Jun 10 09:05:54 2008 +0000
+++ b/tools/Master.cpp	Tue Jun 10 09:08:24 2008 +0000
@@ -1131,8 +1131,9 @@
         for (j = 0; j <= sdo.max_subindex; j++) {
             getSdoEntry(&entry, slavePosition, -i, j);
 
-            cout << "  " << hex << setfill('0') << setw(2)
-                << (unsigned int) entry.sdo_entry_subindex
+            cout << "  " << hex << setfill('0')
+                << setw(4) << sdo.sdo_index << ":" 
+                << setw(2) << (unsigned int) entry.sdo_entry_subindex
                 << ", ";
 
             if ((d = findDataType(entry.data_type))) {