tool/CommandSdos.cpp
branchstable-1.5
changeset 2694 ab97efc5513a
parent 2421 bc2d4bf9cbe5
--- 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 << ":"