mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
Fix CLI command "bind_rx" for CRSF (#13267)
This commit is contained in:
parent
7cb07d8e8e
commit
5fff78136e
4 changed files with 4 additions and 5 deletions
|
@ -6468,7 +6468,7 @@ const clicmd_t cmdTable[] = {
|
|||
"\t<->[name]", cliBeeper),
|
||||
#endif // USE_BEEPER
|
||||
#if defined(USE_RX_BIND)
|
||||
CLI_COMMAND_DEF("bind_rx", "initiate binding for RX SPI or SRXL2", NULL, cliRxBind),
|
||||
CLI_COMMAND_DEF("bind_rx", "initiate binding for RX SPI, SRXL2 or CRSF", NULL, cliRxBind),
|
||||
#endif
|
||||
#if defined(USE_FLASH_BOOT_LOADER)
|
||||
CLI_COMMAND_DEF("bl", "reboot into bootloader", "[flash|rom]", cliBootloader),
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
static bool doRxBind(bool doBind)
|
||||
{
|
||||
#if !defined(USE_SERIALRX_SRXL2) && !defined(USE_RX_FRSKY_SPI) && !defined(USE_RX_SFHSS_SPI) && !defined(USE_RX_FLYSKY) && !defined(USE_RX_SPEKTRUM) && !defined(USE_RX_EXPRESSLRS) && !defined(USE_RX_CRSF)
|
||||
#if !defined(USE_SERIALRX_SRXL2) && !defined(USE_RX_FRSKY_SPI) && !defined(USE_RX_SFHSS_SPI) && !defined(USE_RX_FLYSKY) && !defined(USE_RX_SPEKTRUM) && !defined(USE_RX_EXPRESSLRS) && !defined(USE_SERIALRX_CRSF)
|
||||
UNUSED(doBind);
|
||||
#endif
|
||||
|
||||
|
@ -41,7 +41,7 @@ static bool doRxBind(bool doBind)
|
|||
switch (rxRuntimeState.serialrxProvider) {
|
||||
default:
|
||||
return false;
|
||||
#if defined(USE_RX_CRSF)
|
||||
#if defined(USE_SERIALRX_CRSF)
|
||||
case SERIALRX_CRSF:
|
||||
if (doBind) {
|
||||
crsfRxBind();
|
||||
|
|
|
@ -613,7 +613,7 @@ extern uint8_t __config_end;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(USE_RX_SPI) || defined(USE_SERIALRX_SRXL2)
|
||||
#if defined(USE_RX_SPI) || defined(USE_SERIALRX_SRXL2) || defined(USE_SERIALRX_CRSF)
|
||||
#define USE_RX_BIND
|
||||
#endif
|
||||
|
||||
|
|
|
@ -155,7 +155,6 @@
|
|||
#define USE_RX_SPI
|
||||
|
||||
#define USE_RX_CC2500
|
||||
#define USE_RX_CRSF
|
||||
#define USE_RX_EXPRESSLRS
|
||||
#define USE_RX_SX1280
|
||||
#define USE_RX_SX127X
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue