diff --git a/src/recorder.cpp b/src/recorder.cpp index 9fe523b76308a5b91b449a73a1ca76cbeb0a9969..5e149c1d232670b4ac4c418b3281ef55c9dbfe4b 100644 --- a/src/recorder.cpp +++ b/src/recorder.cpp @@ -176,7 +176,7 @@ void JasonRecorder::get_samples(std::vector<std::uint8_t> &samples, std::vector< else if ((((std::uint16_t) buffer[1] << 8 )|(buffer[2])) == DATA_ID) { // find the beginning and length of the samples in the buffer size_t start = this->additional_data_size + 6; - + imu_data.resize(0); imu_data.reserve(this->additional_data_size); imu_data.insert(imu_data.begin(), &buffer[6], &buffer[start]); size_t num_samples = (received - start);