From a7020e993291811b54503f72e7400faf4d8577c7 Mon Sep 17 00:00:00 2001
From: Florian Pose <fp@igh-essen.com>
Date: Thu, 17 Jul 2008 12:25:02 +0000
Subject: [PATCH] Output Sdo configuration header even if no Sdos were
 configured.

---
 tools/Master.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/Master.cpp b/tools/Master.cpp
index 9bec0e8d..d0172f66 100644
--- a/tools/Master.cpp
+++ b/tools/Master.cpp
@@ -1139,8 +1139,8 @@ void Master::showDetailedConfigs(const ConfigList &configList)
             }
         }
 
+        cout << "Sdo configuration:" << endl;
         if (configIter->sdo_count) {
-            cout << "Sdo configuration:" << endl;
             for (j = 0; j < configIter->sdo_count; j++) {
                 getConfigSdo(&sdo, configIter->config_index, j);
 
@@ -1169,6 +1169,8 @@ void Master::showDetailedConfigs(const ConfigList &configList)
 
                 cout << endl;
             }
+        } else {
+            cout << "  None." << endl;
         }
 
         cout << endl;
-- 
GitLab