Fixed attached slave position in 'ethercat config' -> decimal.
authorFlorian Pose <fp@igh-essen.com>
Wed, 30 Jul 2008 15:31:01 +0000
changeset 1172 74ee632c3b5e
parent 1171 de880622f253
child 1173 2ec9651a6c89
Fixed attached slave position in 'ethercat config' -> decimal.
tool/CommandConfig.cpp
--- a/tool/CommandConfig.cpp	Tue Jul 29 11:37:29 2008 +0000
+++ b/tool/CommandConfig.cpp	Wed Jul 30 15:31:01 2008 +0000
@@ -125,7 +125,7 @@
         
         if (configIter->slave_position != -1) {
             m.getSlave(&slave, configIter->slave_position);
-            cout << configIter->slave_position
+            cout << dec << configIter->slave_position
                 << " (" << alStateString(slave.al_state) << ")" << endl;
         } else {
             cout << "none" << endl;
@@ -238,7 +238,7 @@
         if (configIter->slave_position != -1) {
             m.getSlave(&slave, configIter->slave_position);
 
-            str << configIter->slave_position;
+            str << dec << configIter->slave_position;
             info.slavePos = str.str();
             str.clear();
             str.str("");