From 282e4c74947fb6b4dcf665b73778dfe1fad9cb59 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Wed, 13 Dec 2017 16:00:43 +0100 Subject: [PATCH] Ignore missing SDO entries in output. --- tool/CommandSdos.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tool/CommandSdos.cpp b/tool/CommandSdos.cpp index 09d2a4dd..a4d842fc 100644 --- a/tool/CommandSdos.cpp +++ b/tool/CommandSdos.cpp @@ -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 << ":"