From ea4d3d970b4bd52d8457c919cf547c084c33e22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 3 Feb 2017 11:52:27 +0100 Subject: [PATCH] temperature_calibration: make sure to save the params after the process --- src/modules/events/temperature_calibration/task.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/events/temperature_calibration/task.cpp b/src/modules/events/temperature_calibration/task.cpp index 7f50fd4d55..cd032451ca 100644 --- a/src/modules/events/temperature_calibration/task.cpp +++ b/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) { delete calibrators[i];