mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-09 12:08:37 +08:00
param_shmem: fix style
This commit is contained in:
@@ -859,6 +859,7 @@ param_save_default(void)
|
||||
|
||||
// After writing the file, also do a fsync to prevent loosing params if power is cut.
|
||||
res = fsync(fd);
|
||||
|
||||
if (res != 0) {
|
||||
PX4_ERR("failed to do fsync: %s", strerror(errno));
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user