# HG changeset patch # User Florian Pose # Date 1513177243 -3600 # Node ID ab97efc5513a791182eaff44b08a46f27bd1e451 # Parent 8051d05cb935111f19b1b2b20f34e345c6c8ca88 Ignore missing SDO entries in output. diff -r 8051d05cb935 -r ab97efc5513a tool/CommandSdos.cpp --- a/tool/CommandSdos.cpp Wed Dec 13 15:39:13 2017 +0100 +++ b/tool/CommandSdos.cpp Wed Dec 13 16:00:43 2017 +0100 @@ -145,7 +145,12 @@ 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 << ":"