mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 15:17:35 +08:00
parameters: sleep 10 ms before retrying a failed import/export
This commit is contained in:
@@ -1133,6 +1133,7 @@ int param_save_default()
|
||||
|
||||
if (res != PX4_OK) {
|
||||
PX4_ERR("param_export failed, retrying %d", attempts);
|
||||
px4_usleep(10000); // wait at least 10 milliseconds before trying again
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -1474,6 +1475,7 @@ param_import_internal(int fd, bool mark_saved)
|
||||
}
|
||||
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
px4_usleep(10000); // wait at least 10 milliseconds before trying again
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user