From 4614fb29579c5067df390e9514f7b4516da680aa Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Mon, 1 Aug 2022 00:25:54 +0200 Subject: [PATCH] Raise PID profile count --- src/main/target/common_pre.h | 7 +++++-- src/test/unit/platform.h | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/target/common_pre.h b/src/main/target/common_pre.h index 779ff0594..1c279fc6a 100644 --- a/src/main/target/common_pre.h +++ b/src/main/target/common_pre.h @@ -246,9 +246,12 @@ extern uint8_t _dmaram_end__; #define USE_SERIALRX_SPEKTRUM // SRXL, DSM2 and DSMX protocol #define USE_SERIALRX_SUMD // Graupner Hott protocol -#if (TARGET_FLASH_SIZE > 128) +#if (TARGET_FLASH_SIZE > 256) +#define PID_PROFILE_COUNT 4 +#define CONTROL_RATE_PROFILE_COUNT 4 +#elif (TARGET_FLASH_SIZE > 128) #define PID_PROFILE_COUNT 3 -#define CONTROL_RATE_PROFILE_COUNT 6 +#define CONTROL_RATE_PROFILE_COUNT 4 #else #define PID_PROFILE_COUNT 2 #define CONTROL_RATE_PROFILE_COUNT 3 diff --git a/src/test/unit/platform.h b/src/test/unit/platform.h index 2083af21c..dec45fa17 100644 --- a/src/test/unit/platform.h +++ b/src/test/unit/platform.h @@ -32,8 +32,8 @@ #define FAST_DATA_ZERO_INIT #define FAST_DATA -#define PID_PROFILE_COUNT 3 -#define CONTROL_RATE_PROFILE_COUNT 6 +#define PID_PROFILE_COUNT 4 +#define CONTROL_RATE_PROFILE_COUNT 4 #define USE_MAG #define USE_BARO #define USE_GPS -- 2.11.4.GIT