mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 16:37:34 +08:00
sd_bench and logger use aligned buffers
This commit is contained in:
committed by
Lorenz Meier
parent
45d0603627
commit
ccee36bb68
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user