Fix cc2500_common define block

Define block had its #endif in the wrong place causing most of the code to be excluded if `USE_RX_CC2500_SPI_PA_LNA` wasn't defined.

Also fixes compilation errors for CRAZYBEEF4FR legacy target.

Unified targets weren't affected as they define `USE_RX_CC2500_SPI_PA_LNA` so the error wasn't visible.
This commit is contained in:
Bruce Luckcuck 2020-11-05 16:17:20 -05:00
parent 4bf3e99e9c
commit daf07beb81
1 changed files with 1 additions and 1 deletions

View File

@ -50,6 +50,7 @@ static IO_t rxLnaEnPin;
#if defined(USE_RX_CC2500_SPI_DIVERSITY)
static IO_t antSelPin;
#endif
#endif
static int16_t rssiDbm;
@ -159,7 +160,6 @@ bool cc2500SpiInit(void)
return true;
}
#endif
void cc2500ApplyRegisterConfig(const cc2500RegisterConfigElement_t *configArrayPtr, int configSize)
{