Skip to content

Commit

Permalink
crossfireTelemetryPush allow up to full 64 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjjjjjjj committed Dec 9, 2024
1 parent d0bf631 commit 68195be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion radio/src/telemetry/telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void logTelemetryWriteByte(uint8_t data)
}
#endif

uint8_t outputTelemetryBuffer[TELEMETRY_OUTPUT_FIFO_SIZE] __DMA;
uint8_t outputTelemetryBuffer[TELEMETRY_OUTPUT_BUFFER_SIZE] __DMA;
uint8_t outputTelemetryBufferSize = 0;
uint8_t outputTelemetryBufferTrigger = 0;

Expand Down
5 changes: 2 additions & 3 deletions radio/src/telemetry/telemetry.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ extern uint8_t telemetryState;
#define TELEMETRY_SERIAL_DEFAULT 0
#define TELEMETRY_SERIAL_8E2 1
#define TELEMETRY_SERIAL_WITHOUT_DMA 2
#define TELEMETRY_OUTPUT_FIFO_SIZE 20
#define TELEMETRY_OUTPUT_BUFFER_SIZE 64
#define TELEMETRY_AVERAGE_COUNT 3

#if defined(CROSSFIRE) || defined(MULTIMODULE) || defined(AFHDS2A)
Expand All @@ -112,7 +112,7 @@ extern uint8_t telemetryState;

extern uint8_t telemetryRxBuffer[TELEMETRY_RX_PACKET_SIZE];
extern uint8_t telemetryRxBufferCount;
extern uint8_t outputTelemetryBuffer[TELEMETRY_OUTPUT_FIFO_SIZE] __DMA;
extern uint8_t outputTelemetryBuffer[TELEMETRY_OUTPUT_BUFFER_SIZE] __DMA;
extern uint8_t outputTelemetryBufferSize;
extern uint8_t outputTelemetryBufferTrigger;
extern uint8_t telemetryProtocol;
Expand Down Expand Up @@ -193,7 +193,6 @@ PACK(struct CellValue
#define IS_DISTANCE_UNIT(unit) ((unit) == UNIT_METERS || (unit) == UNIT_FEET)
#define IS_SPEED_UNIT(unit) ((unit) >= UNIT_KTS && (unit) <= UNIT_MPH)

#define IS_FRSKY_D_PROTOCOL() (telemetryProtocol == PROTOCOL_TELEMETRY_FRSKY_D)
#if defined (MULTIMODULE)
#define IS_D16_MULTI() ((g_model.moduleData[EXTERNAL_MODULE].getMultiProtocol(false) == MM_RF_PROTO_FRSKY) && (g_model.moduleData[EXTERNAL_MODULE].subType == MM_RF_FRSKY_SUBTYPE_D16 || g_model.moduleData[EXTERNAL_MODULE].subType == MM_RF_FRSKY_SUBTYPE_D16_8CH))
#define IS_FRSKY_SPORT_PROTOCOL() (telemetryProtocol == PROTOCOL_TELEMETRY_FRSKY_SPORT || (telemetryProtocol == PROTOCOL_TELEMETRY_MULTIMODULE && IS_D16_MULTI()))
Expand Down

0 comments on commit 68195be

Please sign in to comment.