From a6f2f6f71abdac86ec7e64e79f3ab9246e51433a Mon Sep 17 00:00:00 2001 From: Hans Christian Olaussen <41271048+klutvott123@users.noreply.github.com> Date: Sat, 27 Nov 2021 13:26:51 +0100 Subject: [PATCH] Fix thrust_linear and transient_throttle_limit value type in CLI These are per-profile values. --- src/main/cli/settings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/cli/settings.c b/src/main/cli/settings.c index 49a934eeb..818b282b7 100644 --- a/src/main/cli/settings.c +++ b/src/main/cli/settings.c @@ -1143,11 +1143,11 @@ const clivalue_t valueTable[] = { #endif #ifdef USE_THRUST_LINEARIZATION - { "thrust_linear", VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { 0, 150 }, PG_PID_PROFILE, offsetof(pidProfile_t, thrustLinearization) }, + { "thrust_linear", VAR_UINT8 | PROFILE_VALUE, .config.minmaxUnsigned = { 0, 150 }, PG_PID_PROFILE, offsetof(pidProfile_t, thrustLinearization) }, #endif #ifdef USE_AIRMODE_LPF - { "transient_throttle_limit", VAR_UINT8 | MASTER_VALUE, .config.minmax = { 0, 30 }, PG_PID_PROFILE, offsetof(pidProfile_t, transient_throttle_limit) }, + { "transient_throttle_limit", VAR_UINT8 | PROFILE_VALUE, .config.minmax = { 0, 30 }, PG_PID_PROFILE, offsetof(pidProfile_t, transient_throttle_limit) }, #endif #ifdef USE_FEEDFORWARD