aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/AVR/hal_adc_lld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/ports/AVR/hal_adc_lld.c b/os/hal/ports/AVR/hal_adc_lld.c
index 62848d4a4..7cc11bf76 100644
--- a/os/hal/ports/AVR/hal_adc_lld.c
+++ b/os/hal/ports/AVR/hal_adc_lld.c
@@ -91,7 +91,8 @@ OSAL_IRQ_HANDLER(ADC_vect) {
if (ADCD1.currentBufferPosition == bufferSize) {
_adc_isr_full_code(&ADCD1);
- } else {
+ }
+ else {
setAdcChannel(getAdcChannelNumberFromMask(ADCD1.grpp->channelsMask,currentChannel));
ADCSRA |= 1 << ADSC;
}