1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Remove SPEK1024 as the default RX (set to NONE) (#12500)

This commit is contained in:
J Blackman 2023-03-13 20:21:03 +11:00 committed by GitHub
parent 53dbad7e1a
commit f69fe363c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View file

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

View file

@ -124,7 +124,9 @@ void ghstRxSendTelemetryData(void)
{ {
// if there is telemetry data to write // if there is telemetry data to write
if (telemetryBufLen > 0) { if (telemetryBufLen > 0) {
serialWriteBuf(serialPort, telemetryBuf, telemetryBufLen); if (serialPort != NULL) {
serialWriteBuf(serialPort, telemetryBuf, telemetryBufLen);
}
telemetryBufLen = 0; // reset telemetry buffer telemetryBufLen = 0; // reset telemetry buffer
} }
} }

View file

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