ELRS: increase buffer to support more complex/dual-band devices

This commit is contained in:
janek
2025-01-20 22:15:52 +01:00
parent a919688895
commit 4a9e891b25
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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;