Skip to content

Commit

Permalink
Fix the use of logControlBoardQuantities flag
Browse files Browse the repository at this point in the history
  • Loading branch information
valegagge committed Oct 4, 2024
1 parent 3143e6c commit ed30a2c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/telemetryDeviceDumper/TelemetryDeviceDumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,15 @@ bool TelemetryDeviceDumper::openRemapperControlBoard(yarp::os::Searchable& confi
}

int axes = 0;
ok = ok && remappedControlBoardInterfaces.encs->getAxes(&axes);
if (ok) {
this->resizeBuffers(axes);
}
else {
yError() << "telemetryDeviceDumper: open impossible to use the necessary interfaces in remappedControlBoard";
return ok;
if (settings.logControlBoardQuantities){
ok = ok && remappedControlBoardInterfaces.encs->getAxes(&axes);
if (ok) {
this->resizeBuffers(axes);
}
else {
yError() << "telemetryDeviceDumper: open impossible to use the necessary interfaces in remappedControlBoard";
return ok;
}
}

return true;
Expand Down

0 comments on commit ed30a2c

Please sign in to comment.