aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src/adc.c')
-rw-r--r--os/hal/src/adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/src/adc.c b/os/hal/src/adc.c
index e37e6b16b..412e407ae 100644
--- a/os/hal/src/adc.c
+++ b/os/hal/src/adc.c
@@ -285,7 +285,7 @@ msg_t adcConvert(ADCDriver *adcp,
chSysLock();
chDbgAssert(adcp->thread == NULL, "adcConvert(), #1", "already waiting");
adcStartConversionI(adcp, grpp, samples, depth);
- (adcp)->thread = chThdSelf();
+ adcp->thread = chThdSelf();
chSchGoSleepS(THD_STATE_SUSPENDED);
msg = chThdSelf()->p_u.rdymsg;
chSysUnlock();