Skip to content

Commit

Permalink
Fix cc2500_common define block
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
etracer65 committed Nov 5, 2020
1 parent 4bf3e99 commit daf07be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/rx/cc2500_common.c
Expand Up @@ -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;

Expand Down Expand Up @@ -159,7 +160,6 @@ bool cc2500SpiInit(void)

return true;
}
#endif

void cc2500ApplyRegisterConfig(const cc2500RegisterConfigElement_t *configArrayPtr, int configSize)
{
Expand Down

0 comments on commit daf07be

Please sign in to comment.