diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/include/adc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/include/adc.h b/os/hal/include/adc.h index 1e3f6edc7..a236a040a 100644 --- a/os/hal/include/adc.h +++ b/os/hal/include/adc.h @@ -205,6 +205,8 @@ typedef enum { if ((adcp)->state == ADC_COMPLETE) \
(adcp)->state = ADC_READY; \
} \
+ else \
+ (adcp)->state = ADC_READY; \
(adcp)->grpp = NULL; \
_adc_wakeup_isr(adcp); \
} \
|