Only need rawRSSI variable if SEND_RSSI is defined

This commit is contained in:
phl0 2018-09-18 10:33:33 +02:00
parent 11997ca017
commit 5c9abf2eeb
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A
1 changed files with 2 additions and 0 deletions

View File

@ -369,7 +369,9 @@ void CIO::interrupt()
{
uint8_t control = MARK_NONE;
uint16_t sample = DC_OFFSET;
#if defined(SEND_RSSI_DATA)
uint16_t rawRSSI = 0U;
#endif
bitband_t eoc = (bitband_t)BITBAND_PERIPH(&ADC1->SR, ADC_SR_EOS_Pos);
bitband_t adon = (bitband_t)BITBAND_PERIPH(&ADC1->CR2, ADC_CR2_ADON_Pos);
#if defined(SEND_RSSI_DATA)