mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 12:10:34 +08:00
file paths: add PX4_STORAGEDIR & use it where appropriate
This commit is contained in:
@@ -312,7 +312,7 @@ bool ParameterTest::exportImportAll()
|
||||
static constexpr float MAGIC_FLOAT_VAL = 0.217828f;
|
||||
|
||||
// backup current parameters
|
||||
const char *param_file_name = PX4_ROOTFSDIR "/fs/microsd/param_backup";
|
||||
const char *param_file_name = PX4_STORAGEDIR "/param_backup";
|
||||
int fd = open(param_file_name, O_WRONLY | O_CREAT, PX4_O_MODE_666);
|
||||
|
||||
if (fd < 0) {
|
||||
|
||||
Reference in New Issue
Block a user