diff --git a/src/telemetryDeviceDumper/TelemetryDeviceDumper.cpp b/src/telemetryDeviceDumper/TelemetryDeviceDumper.cpp index 992c23f..3d4846b 100644 --- a/src/telemetryDeviceDumper/TelemetryDeviceDumper.cpp +++ b/src/telemetryDeviceDumper/TelemetryDeviceDumper.cpp @@ -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;