From 4a91546cedc6813480e81fb3d6092eb4c047ed2c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 9 Dec 2014 14:35:36 +1100 Subject: [PATCH] HAL_PX4: FRAM does not support fsync the fsync just wastes time reopening /fs/mtd --- libraries/AP_HAL_PX4/Storage.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libraries/AP_HAL_PX4/Storage.cpp b/libraries/AP_HAL_PX4/Storage.cpp index b895b39fd7..7ac62108e6 100644 --- a/libraries/AP_HAL_PX4/Storage.cpp +++ b/libraries/AP_HAL_PX4/Storage.cpp @@ -261,13 +261,6 @@ void PX4Storage::_timer_tick(void) _fd = -1; perf_count(_perf_errors); } - if (_dirty_mask == 0) { - if (fsync(_fd) != 0) { - close(_fd); - _fd = -1; - perf_count(_perf_errors); - } - } } perf_end(_perf_storage); }