DataFlash: speed up DataFlash in Replay

This commit is contained in:
Andrew Tridgell 2015-04-21 10:14:41 +10:00
parent dcb25632fb
commit c153d31dd2

View File

@ -648,7 +648,7 @@ void DataFlash_File::_io_timer(void)
chunk, ensuring the directory entry is updated after each
write.
*/
#if CONFIG_HAL_BOARD != HAL_BOARD_AVR_SITL
#if CONFIG_HAL_BOARD != HAL_BOARD_AVR_SITL && CONFIG_HAL_BOARD_SUBTYPE != HAL_BOARD_SUBTYPE_LINUX_NONE
::fsync(_write_fd);
#endif
BUF_ADVANCEHEAD(_writebuf, nwritten);