param save: Add a blocking API for param saves to be used from shell.

This commit is contained in:
Thomas Debrunner
2023-06-21 08:19:52 +02:00
committed by Beat Küng
parent 18f0311161
commit fd267fb9a5
12 changed files with 43 additions and 20 deletions
+2 -2
View File
@@ -187,9 +187,9 @@ param_reset_specific(const char *resets[], int num_resets)
boardctl(PARAMIOCRESETGROUP, reinterpret_cast<unsigned long>(&data));
}
int param_save_default()
int param_save_default(bool blocking)
{
paramiocsavedefault_t data = {PX4_ERROR};
paramiocsavedefault_t data = {blocking, PX4_ERROR};
boardctl(PARAMIOCSAVEDEFAULT, reinterpret_cast<unsigned long>(&data));
return data.ret;
}