Skip to content
Snippets Groups Projects
Commit ffd09e18 authored by Florian Pose's avatar Florian Pose
Browse files

Fixed attached slave position in 'ethercat config' -> decimal.

parent e5144f5a
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,7 @@ void CommandConfig::showDetailedConfigs( ...@@ -125,7 +125,7 @@ void CommandConfig::showDetailedConfigs(
if (configIter->slave_position != -1) { if (configIter->slave_position != -1) {
m.getSlave(&slave, configIter->slave_position); m.getSlave(&slave, configIter->slave_position);
cout << configIter->slave_position cout << dec << configIter->slave_position
<< " (" << alStateString(slave.al_state) << ")" << endl; << " (" << alStateString(slave.al_state) << ")" << endl;
} else { } else {
cout << "none" << endl; cout << "none" << endl;
...@@ -238,7 +238,7 @@ void CommandConfig::listConfigs( ...@@ -238,7 +238,7 @@ void CommandConfig::listConfigs(
if (configIter->slave_position != -1) { if (configIter->slave_position != -1) {
m.getSlave(&slave, configIter->slave_position); m.getSlave(&slave, configIter->slave_position);
str << configIter->slave_position; str << dec << configIter->slave_position;
info.slavePos = str.str(); info.slavePos = str.str();
str.clear(); str.clear();
str.str(""); str.str("");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment