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:
parent
53dbad7e1a
commit
f69fe363c8
3 changed files with 8 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue