mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Fix RX protocol config (#12497)
* Fix RX protocol config * Fixes per review
This commit is contained in:
parent
5c43f369f2
commit
33f258d967
2 changed files with 5 additions and 4 deletions
|
@ -35,13 +35,17 @@
|
|||
#include "rx/rx_spi.h"
|
||||
|
||||
#ifndef SERIALRX_PROVIDER
|
||||
|
||||
#if defined(USE_SERIALRX_SBUS)
|
||||
#define SERIALRX_PROVIDER SERIALRX_SBUS
|
||||
#elif defined(USE_SERIALRX_GHST)
|
||||
#define SERIALRX_PROVIDER SERIALRX_GHST
|
||||
#else
|
||||
#elif defined(USE_SERIALRX_CRSF)
|
||||
#define SERIALRX_PROVIDER SERIALRX_CRSF
|
||||
#else
|
||||
#define SERIALRX_PROVIDER 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
PG_REGISTER_WITH_RESET_FN(rxConfig_t, rxConfig, PG_RX_CONFIG, 4);
|
||||
|
|
|
@ -58,9 +58,6 @@
|
|||
#ifndef RX_SPI_DEFAULT_PROTOCOL
|
||||
#define RX_SPI_DEFAULT_PROTOCOL 0
|
||||
#endif
|
||||
#ifndef SERIALRX_PROVIDER
|
||||
#define SERIALRX_PROVIDER 0
|
||||
#endif
|
||||
|
||||
#define RX_MIN_USEC 885
|
||||
#define RX_MAX_USEC 2115
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue