Ignore missing SDO entries in output.

This commit is contained in:
Florian Pose 2017-12-13 16:00:43 +01:00
parent 538c3d7c04
commit 282e4c7494
1 changed files with 6 additions and 1 deletions

View File

@ -145,7 +145,12 @@ void CommandSdos::listSlaveSdos(
continue;
for (j = 0; j <= sdo.max_subindex; j++) {
m.getSdoEntry(&entry, slave.position, -i, j);
try {
m.getSdoEntry(&entry, slave.position, -i, j);
}
catch (MasterDeviceException &e) {
continue;
}
cout << " 0x" << hex << setfill('0')
<< setw(4) << sdo.sdo_index << ":"