Skip to content

Commit

Permalink
ELRS: increase buffer to support more complex/dual-band devices
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjjjjjjj committed Jan 20, 2025
1 parent a919688 commit 4a9e891
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions radio/src/opentx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion radio/src/targets/flysky/tools/elrs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4a9e891

Please sign in to comment.