Browse Source

temperature_calibration: make sure to save the params after the process

sbg
Beat Küng 8 years ago committed by Lorenz Meier
parent
commit
ea4d3d970b
  1. 7
      src/modules/events/temperature_calibration/task.cpp

7
src/modules/events/temperature_calibration/task.cpp

@ -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];

Loading…
Cancel
Save