chg: 'hw detectreader' - kind of useless previous change, measuring from two different readers, the max was 18.8v and 20.1v Not even close to 36v the standard ADC is configured

This commit is contained in:
iceman1001 2018-03-15 10:48:57 +01:00
parent c3ba3f306f
commit 5690c0f5bc

View file

@ -490,7 +490,8 @@ void ListenReaderField(int limit) {
hf_av = hf_max = AvgAdc(ADC_CHAN_HF);
// RDV40 will hit the roof, try other ADC channel used in that hardware revision.
// iceman, useless, since we are measuring readerfield, not our field. My tests shows a max of 20v from a reader.
// RDV40 will hit the roof, try other ADC channel used in that hardware revision.
bool use_high = ( ((MAX_ADC_HF_VOLTAGE * hf_max) >> 10) > MAX_ADC_HF_VOLTAGE-300 );
if ( use_high ) {
hf_av = hf_max = AvgAdc(ADC_CHAN_HF_RDV40);