diff --git a/libraries/DataFlash/DataFlash_File.cpp b/libraries/DataFlash/DataFlash_File.cpp index 7c5e202d64..cf14436b41 100644 --- a/libraries/DataFlash/DataFlash_File.cpp +++ b/libraries/DataFlash/DataFlash_File.cpp @@ -578,7 +578,9 @@ void DataFlash_File::_io_timer(void) chunk, ensuring the directory entry is updated after each write. */ +#if CONFIG_HAL_BOARD != HAL_BOARD_AVR_SITL ::fsync(_write_fd); +#endif BUF_ADVANCEHEAD(_writebuf, nwritten); } perf_end(_perf_write);