mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
temperature_calibration: make sure to save the params after the process
This commit is contained in:
@@ -242,6 +242,13 @@ void TemperatureCalibration::task_main()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
param_notify_changes();
|
||||||
|
int ret = param_save_default();
|
||||||
|
|
||||||
|
if (ret != 0) {
|
||||||
|
PX4_ERR("Failed to save params (%i)", ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
for (int i = 0; i < num_calibrators; ++i) {
|
for (int i = 0; i < num_calibrators; ++i) {
|
||||||
delete calibrators[i];
|
delete calibrators[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user