DataFlash: fixed logging on PX4v1

large writes break IO, a NuttX bug
This commit is contained in:
Andrew Tridgell 2014-02-20 06:55:35 +11:00
parent 20b0444c15
commit f222f2ef1e

View File

@ -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)