mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
commander: workaround to wait 1s before param save
Without this wait, we end up saving the old parameters on Snapdragon.
This commit is contained in:
parent
60d66dc23f
commit
7352dc6f2e
@ -3621,6 +3621,12 @@ void *commander_low_prio_loop(void *arg)
|
||||
|
||||
} else if (((int)(cmd.param1)) == 1) {
|
||||
|
||||
#ifdef __PX4_QURT
|
||||
// TODO FIXME: on snapdragon the save happens to early when the params
|
||||
// are not set yet. We therefore need to wait some time first.
|
||||
usleep(1000000);
|
||||
#endif
|
||||
|
||||
int ret = param_save_default();
|
||||
|
||||
if (ret == OK) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user