mirror of https://github.com/ArduPilot/ardupilot
HAL_PX4: FRAM does not support fsync
the fsync just wastes time reopening /fs/mtd
This commit is contained in:
parent
068b5a54c9
commit
4a91546ced
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue