Browse Source

DataFlash: fixed logging on PX4v1

large writes break IO, a NuttX bug
mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
f222f2ef1e
  1. 5
      libraries/DataFlash/DataFlash_File.cpp

5
libraries/DataFlash/DataFlash_File.cpp

@ -42,7 +42,12 @@ DataFlash_File::DataFlash_File(const char *log_directory) : @@ -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…
Cancel
Save