HAL_PX4: FRAM does not support fsync

the fsync just wastes time reopening /fs/mtd
This commit is contained in:
Andrew Tridgell 2014-12-09 14:35:36 +11:00
parent 068b5a54c9
commit 4a91546ced
1 changed files with 0 additions and 7 deletions

View File

@ -261,13 +261,6 @@ void PX4Storage::_timer_tick(void)
_fd = -1; _fd = -1;
perf_count(_perf_errors); perf_count(_perf_errors);
} }
if (_dirty_mask == 0) {
if (fsync(_fd) != 0) {
close(_fd);
_fd = -1;
perf_count(_perf_errors);
}
}
} }
perf_end(_perf_storage); perf_end(_perf_storage);
} }