mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 22:03:34 +08:00
param_import: add mark_saved argument
Behavior of the 'param import' command: - if no file provided, parameters are marked as saved (differs from before) - if a file is provided: parameters are not marked as saved
This commit is contained in:
@@ -363,7 +363,7 @@ bool ParameterTest::exportImportAll()
|
||||
return false;
|
||||
}
|
||||
|
||||
int result = param_export(fd, false);
|
||||
int result = param_export(fd, false, nullptr);
|
||||
|
||||
if (result != PX4_OK) {
|
||||
PX4_ERR("param_export failed");
|
||||
@@ -516,7 +516,7 @@ bool ParameterTest::exportImportAll()
|
||||
return false;
|
||||
}
|
||||
|
||||
result = param_import(fd);
|
||||
result = param_import(fd, false);
|
||||
close(fd);
|
||||
|
||||
if (result < 0) {
|
||||
|
||||
Reference in New Issue
Block a user