Output Sdo configuration header even if no Sdos were configured.
authorFlorian Pose <fp@igh-essen.com>
Thu, 17 Jul 2008 12:25:02 +0000
changeset 1114 809f1b16ee7c
parent 1113 4d720feb915d
child 1115 b7b965ab94cd
Output Sdo configuration header even if no Sdos were configured.
tools/Master.cpp
--- a/tools/Master.cpp	Thu Jul 17 11:51:22 2008 +0000
+++ b/tools/Master.cpp	Thu Jul 17 12:25:02 2008 +0000
@@ -1139,8 +1139,8 @@
             }
         }
 
+        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 @@
 
                 cout << endl;
             }
+        } else {
+            cout << "  None." << endl;
         }
 
         cout << endl;