applied theremin patch, adc values are summed, remember to divide when read

This commit is contained in:
iceman1001 2020-06-09 23:37:56 +02:00
commit 9189dc8563
6 changed files with 24 additions and 25 deletions

View file

@ -53,9 +53,9 @@ static uint16_t FpgaSendQueueDelay;
static uint16_t ReadReaderField(void) {
#if defined RDV4
return AvgAdc(ADC_CHAN_HF_RDV40);
return SumAdc(ADC_CHAN_HF_RDV40, 32) >> 5;
#else
return AvgAdc(ADC_CHAN_HF);
return SumAdc(ADC_CHAN_HF, 32) >> 5;
#endif
}