From 5690c0f5bc3b3459558bc3e4a7209a44bc510f04 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 15 Mar 2018 10:48:57 +0100 Subject: [PATCH] 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 --- armsrc/appmain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index b6c3b7e66..bcefc5904 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -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);