Skip to content

Commit

Permalink
Fix bug in ISkinSensor log (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoGrieco authored Feb 18, 2022
1 parent 94465ec commit 9d6a422
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wrappers/IWearLogger/src/IWearLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,8 @@ void IWearLogger::run()
}
else
{
std::vector<double> saveVar;
std::copy(pressureVector.begin(), pressureVector.end(), std::back_inserter(saveVar));
std::vector<double> saveVar{pressureVector.begin(), pressureVector.end()};
pImpl->prefixVecWithSensorStatus(sensor, saveVar);

if (pImpl->loggerType == LoggerType::MATLAB
|| pImpl->loggerType == LoggerType::MATLAB_YARP) {
Expand All @@ -789,7 +789,7 @@ void IWearLogger::run()
yarp::sig::Vector& data = port->prepare();
pImpl->prepareYarpBottle(saveVar, data);
port->setEnvelope(timestamp);
port->write(true);
port->write();
}
}
}
Expand Down

0 comments on commit 9d6a422

Please sign in to comment.