diff options
Diffstat (limited to 'firmware/drivers/adc.c')
-rw-r--r-- | firmware/drivers/adc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/firmware/drivers/adc.c b/firmware/drivers/adc.c index c9e11e0f56..b71583ca05 100644 --- a/firmware/drivers/adc.c +++ b/firmware/drivers/adc.c | |||
@@ -113,9 +113,10 @@ static unsigned char adcdata[NUM_ADC_CHANNELS]; | |||
113 | #ifdef IRIVER_H300_SERIES | 113 | #ifdef IRIVER_H300_SERIES |
114 | static int channelnum[] = | 114 | static int channelnum[] = |
115 | { | 115 | { |
116 | 5, /* ADC_BUTTONS */ | 116 | 5, /* ADC_BUTTONS (ADCIN2) */ |
117 | 6, /* ADC_REMOTE */ | 117 | 6, /* ADC_REMOTE (ADCIN3) */ |
118 | 0, /* ADC_BATTERY */ | 118 | 0, /* ADC_BATTERY (BATVOLT, resistive divider) */ |
119 | 2, /* ADC_REMOTEDETECT (ADCIN1, resistive divider) */ | ||
119 | }; | 120 | }; |
120 | 121 | ||
121 | unsigned char adc_scan(int channel) | 122 | unsigned char adc_scan(int channel) |
@@ -212,6 +213,8 @@ static void adc_tick(void) | |||
212 | { | 213 | { |
213 | adc_counter = 0; | 214 | adc_counter = 0; |
214 | adc_scan(ADC_BATTERY); | 215 | adc_scan(ADC_BATTERY); |
216 | adc_scan(ADC_REMOTEDETECT); /* Temporary. Remove when the remote | ||
217 | detection feels stable. */ | ||
215 | } | 218 | } |
216 | } | 219 | } |
217 | 220 | ||