From 3d50a7ce4454a7775c9e121798502a8f9b6ff2bb Mon Sep 17 00:00:00 2001 From: bresch Date: Fri, 13 Jan 2023 12:10:20 +0100 Subject: [PATCH] CAL_MAG_SIDES: do not save with factory cal --- src/modules/commander/factory_calibration_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/factory_calibration_storage.cpp b/src/modules/commander/factory_calibration_storage.cpp index e4bfeeba99..143202f735 100644 --- a/src/modules/commander/factory_calibration_storage.cpp +++ b/src/modules/commander/factory_calibration_storage.cpp @@ -47,7 +47,7 @@ static bool filter_calibration_params(param_t handle) { const char *name = param_name(handle); // filter all non-calibration params - return strncmp(name, "CAL_", 4) == 0 || strncmp(name, "TC_", 3) == 0; + return (strncmp(name, "CAL_", 4) == 0 && strncmp(name, "CAL_MAG_SIDES", 13) != 0) || strncmp(name, "TC_", 3) == 0; } FactoryCalibrationStorage::FactoryCalibrationStorage()