aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src')
-rw-r--r--os/hal/src/adc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/os/hal/src/adc.c b/os/hal/src/adc.c
index 0d33cde4e..c6968f11b 100644
--- a/os/hal/src/adc.c
+++ b/os/hal/src/adc.c
@@ -268,8 +268,7 @@ msg_t adcConvert(ADCDriver *adcp,
msg_t msg;
chSysLock();
- chDbgAssert(adcp->ad_config->ac_endcb == NULL,
- "adcConvert(), #1", "has callback");
+ chDbgAssert(grpp->acg_endcb == NULL, "adcConvert(), #1", "has callback");
adcStartConversionI(adcp, grpp, samples, depth);
(adcp)->ad_thread = chThdSelf();
chSchGoSleepS(THD_STATE_SUSPENDED);