mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 08:13:33 +08:00
param save: Add a blocking API for param saves to be used from shell.
This commit is contained in:
committed by
Beat Küng
parent
18f0311161
commit
fd267fb9a5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user