Skip to content

Commit

Permalink
Remove SPEK1024 as the default RX (set to NONE) (betaflight#12500)
Browse files Browse the repository at this point in the history
  • Loading branch information
blckmn authored Mar 13, 2023
1 parent 53dbad7 commit f69fe36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/main/cli/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static const char * const lookupTableBlackboxSampleRate[] = {

#ifdef USE_SERIALRX
static const char * const lookupTableSerialRX[] = {
"SPEK1024",
"NONE",
"SPEK2048",
"SBUS",
"SUMD",
Expand All @@ -247,6 +247,7 @@ static const char * const lookupTableSerialRX[] = {
"FPORT",
"SRXL2",
"GHST",
"SPEK1024",
};
#endif

Expand Down
4 changes: 3 additions & 1 deletion src/main/rx/ghst.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ void ghstRxSendTelemetryData(void)
{
// if there is telemetry data to write
if (telemetryBufLen > 0) {
serialWriteBuf(serialPort, telemetryBuf, telemetryBufLen);
if (serialPort != NULL) {
serialWriteBuf(serialPort, telemetryBuf, telemetryBufLen);
}
telemetryBufLen = 0; // reset telemetry buffer
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/main/rx/rx.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ typedef enum {
} rxFrameState_e;

typedef enum {
SERIALRX_SPEKTRUM1024 = 0,
SERIALRX_NONE = 0,
SERIALRX_SPEKTRUM2048 = 1,
SERIALRX_SBUS = 2,
SERIALRX_SUMD = 3,
Expand All @@ -68,7 +68,8 @@ typedef enum {
SERIALRX_TARGET_CUSTOM = 11,
SERIALRX_FPORT = 12,
SERIALRX_SRXL2 = 13,
SERIALRX_GHST = 14
SERIALRX_GHST = 14,
SERIALRX_SPEKTRUM1024 = 15
} SerialRXType;

#define MAX_SUPPORTED_RC_PPM_CHANNEL_COUNT 12
Expand Down

0 comments on commit f69fe36

Please sign in to comment.