diff --git a/devices/YarpRobotLoggerDevice/include/BipedalLocomotion/YarpRobotLoggerDevice.h b/devices/YarpRobotLoggerDevice/include/BipedalLocomotion/YarpRobotLoggerDevice.h index bdbf3c91e6..003257ddf2 100644 --- a/devices/YarpRobotLoggerDevice/include/BipedalLocomotion/YarpRobotLoggerDevice.h +++ b/devices/YarpRobotLoggerDevice/include/BipedalLocomotion/YarpRobotLoggerDevice.h @@ -262,9 +262,7 @@ class YarpRobotLoggerDevice : public yarp::dev::DeviceDriver, const std::string timestampsName = "timestamps"; - virtual bool lastCallSave(); - - virtual bool periodicSave(); + virtual bool saveData(); }; } // namespace BipedalLocomotion diff --git a/devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp b/devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp index 2ad467f4c1..2c9a52cd18 100644 --- a/devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp +++ b/devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp @@ -2006,14 +2006,7 @@ bool YarpRobotLoggerDevice::close() return true; } -bool YarpRobotLoggerDevice::lastCallSave() -{ - std::string fileName; - m_bufferManager.saveToFile(fileName); - return this->saveCallback(fileName, robometry::SaveCallbackSaveMethod::last_call); -} - -bool YarpRobotLoggerDevice::periodicSave() +bool YarpRobotLoggerDevice::saveData() { std::string fileName; m_bufferManager.saveToFile(fileName); diff --git a/devices/YarpRobotLoggerDevice/thrifts/YarpRobotLoggerDeviceCommands.thrift b/devices/YarpRobotLoggerDevice/thrifts/YarpRobotLoggerDeviceCommands.thrift index 94febeedca..df4a7e1f09 100644 --- a/devices/YarpRobotLoggerDevice/thrifts/YarpRobotLoggerDeviceCommands.thrift +++ b/devices/YarpRobotLoggerDevice/thrifts/YarpRobotLoggerDeviceCommands.thrift @@ -8,7 +8,5 @@ service YarpRobotLoggerDeviceCommands { - bool lastCallSave(); - - bool periodicSave(); + bool saveData(); }