From 4a9e891b25364899b8a6290d6767c3b970f0bf1e Mon Sep 17 00:00:00 2001 From: janek Date: Mon, 20 Jan 2025 22:15:52 +0100 Subject: [PATCH] ELRS: increase buffer to support more complex/dual-band devices --- radio/src/opentx.h | 4 ++-- radio/src/targets/flysky/tools/elrs.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/src/opentx.h b/radio/src/opentx.h index 9a80898353..80d294d70d 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -195,9 +195,9 @@ #if defined(PCBI6X_ELRS) #if defined(CRSF_EXTENDED_TYPES) -#define CTOOL_DATA_SIZE (552 + 44 + 216 + 8) // 820 +#define CTOOL_DATA_SIZE (720 + 44 + 216 + 8) // 988 #else -#define CTOOL_DATA_SIZE (552 + 44 + 180 + 8) // 784 +#define CTOOL_DATA_SIZE (720 + 44 + 180 + 8) // 952 #endif #else #define CTOOL_DATA_SIZE 512 // minimize RAM usage for non PCBI6X_ELRS builds diff --git a/radio/src/targets/flysky/tools/elrs.cpp b/radio/src/targets/flysky/tools/elrs.cpp index 3fc85ed922..d408129ffc 100644 --- a/radio/src/targets/flysky/tools/elrs.cpp +++ b/radio/src/targets/flysky/tools/elrs.cpp @@ -70,7 +70,7 @@ struct ParamFunctions { void (*display)(Parameter*, uint8_t, uint8_t); }; -static constexpr uint16_t BUFFER_SIZE = 552; +static constexpr uint16_t BUFFER_SIZE = 720; static uint8_t *buffer = &reusableBuffer.cToolData[0]; static uint16_t bufferOffset = 0;