temperature_calibration: make sure to save the params after the process

This commit is contained in:
Beat Küng
2017-02-03 11:52:27 +01:00
committed by Lorenz Meier
parent 6583f73cfa
commit ea4d3d970b
@@ -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) {
delete calibrators[i];