CAL_MAG_SIDES: do not save with factory cal

This commit is contained in:
bresch
2023-01-13 12:10:20 +01:00
committed by Daniel Agar
parent 3d73e273e6
commit 3d50a7ce44
@@ -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()