From 3368bcd569f3d761ce649d86fcfadca0697fe822 Mon Sep 17 00:00:00 2001 From: "K.Ohta" Date: Wed, 2 Oct 2013 14:17:55 +0900 Subject: [PATCH] [ADC][Battery] Insert idle_time_ms(1) to polling where FVR will be stable. --- radio_getstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio_getstat.c b/radio_getstat.c index a5f661e..3853c2e 100644 --- a/radio_getstat.c +++ b/radio_getstat.c @@ -92,7 +92,7 @@ void update_status(void) adc = polladc2(); //ADC:reference CVRCON2bits.FVREN = 1; - while(CVRCON2bits.FVRST == 0); + while(CVRCON2bits.FVRST == 0) idle_time_ms(1); startadc(_REF_ADC); ref = polladc2(); CVRCON2bits.FVREN = 0; -- 2.11.0