mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
DataFlash: fixed logging on PX4v1
large writes break IO, a NuttX bug
This commit is contained in:
parent
20b0444c15
commit
f222f2ef1e
@ -42,7 +42,12 @@ DataFlash_File::DataFlash_File(const char *log_directory) :
|
||||
_log_directory(log_directory),
|
||||
_writebuf(NULL),
|
||||
_writebuf_size(16*1024),
|
||||
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||
// V1 gets IO errors with larger than 512 byte writes
|
||||
_writebuf_chunk(512),
|
||||
#else
|
||||
_writebuf_chunk(4096),
|
||||
#endif
|
||||
_writebuf_head(0),
|
||||
_writebuf_tail(0),
|
||||
_last_write_time(0)
|
||||
|
Loading…
Reference in New Issue
Block a user