Output Sdo index at entry.

This commit is contained in:
Florian Pose 2008-06-10 09:08:24 +00:00
parent 44ba1bdec6
commit c7a066e7c3
1 changed files with 3 additions and 2 deletions

View File

@ -1131,8 +1131,9 @@ void Master::listSlaveSdos(
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))) {