sd_bench and logger use aligned buffers

This commit is contained in:
David Sidrane
2021-03-15 13:13:37 -07:00
committed by Lorenz Meier
parent 45d0603627
commit ccee36bb68
4 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -457,7 +457,7 @@ bool LogWriterFile::LogFileBuffer::start_log(const char *filename)
}
if (_buffer == nullptr) {
_buffer = new uint8_t[_buffer_size];
_buffer = (uint8_t *) px4_cache_aligned_alloc(_buffer_size);
if (_buffer == nullptr) {
PX4_ERR("Can't create log buffer");