diff --git a/src/main/cli/cli.c b/src/main/cli/cli.c index ed48ea1c76..f32f6cddda 100644 --- a/src/main/cli/cli.c +++ b/src/main/cli/cli.c @@ -136,6 +136,7 @@ extern uint8_t __config_end; #include "pg/pg.h" #include "pg/pg_ids.h" #include "pg/rx.h" +#include "pg/rx_spi_cc2500.h" #include "pg/rx_spi.h" #include "pg/rx_pwm.h" #include "pg/serial_uart.h" @@ -4500,11 +4501,11 @@ const cliResourceValue_t resourceTable[] = { DEFS( OWNER_RX_SPI_EXTI, PG_RX_SPI_CONFIG, rxSpiConfig_t, extiIoTag ), DEFS( OWNER_RX_SPI_BIND, PG_RX_SPI_CONFIG, rxSpiConfig_t, bindIoTag ), DEFS( OWNER_RX_SPI_LED, PG_RX_SPI_CONFIG, rxSpiConfig_t, ledIoTag ), -#if defined(USE_RX_SPI_CC2500) && defined(USE_RX_CC2500_SPI_PA_LNA) - DEFS( OWNER_RX_SPI_CC2500_TX_EN, PG_RX_SPI_CC2500_CONFIG, rxCc2500SpiConfig_t, txEnIoTag ), - DEFS( OWNER_RX_SPI_CC2500_LNA_EN, PG_RX_SPI_CC2500_CONFIG, rxCc2500SpiConfig_t, lnaEnIoTag ), +#if defined(USE_RX_CC2500) && defined(USE_RX_CC2500_SPI_PA_LNA) + DEFS( OWNER_RX_SPI_CC2500_TX_EN, PG_RX_CC2500_SPI_CONFIG, rxCc2500SpiConfig_t, txEnIoTag ), + DEFS( OWNER_RX_SPI_CC2500_LNA_EN, PG_RX_CC2500_SPI_CONFIG, rxCc2500SpiConfig_t, lnaEnIoTag ), #if defined(USE_RX_CC2500_SPI_DIVERSITY) - DEFS( OWNER_RX_SPI_CC2500_ANT_SEL, PG_RX_SPI_CC2500_CONFIG, rxCc2500SpiConfig_t, antSelIoTag ), + DEFS( OWNER_RX_SPI_CC2500_ANT_SEL, PG_RX_CC2500_SPI_CONFIG, rxCc2500SpiConfig_t, antSelIoTag ), #endif #endif #endif