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:
Julian Oes 2016-04-05 12:34:40 +02:00
parent 60d66dc23f
commit 7352dc6f2e

View File

@ -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) {