aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/adc_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/adc_lld.c')
-rw-r--r--os/hal/templates/adc_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/templates/adc_lld.c b/os/hal/templates/adc_lld.c
index 6c541f557..4a6acbee6 100644
--- a/os/hal/templates/adc_lld.c
+++ b/os/hal/templates/adc_lld.c
@@ -83,7 +83,7 @@ void adc_lld_start(ADCDriver *adcp) {
*/
void adc_lld_stop(ADCDriver *adcp) {
- if (adcp->ad_state == ADC_READY) {
+ if (adcp->state == ADC_READY) {
/* Clock de-activation.*/
}