aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src')
-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 f1be56873..5103446b1 100644
--- a/os/hal/src/adc.c
+++ b/os/hal/src/adc.c
@@ -175,7 +175,7 @@ void adcStartConversionI(ADCDriver *adcp,
osalDbgCheckClassI();
osalDbgCheck((adcp != NULL) && (grpp != NULL) && (samples != NULL) &&
- ((depth == 1U) || ((depth & 1U) == 0U)));
+ (depth > 0U) && ((depth == 1U) || ((depth & 1U) == 0U)));
osalDbgAssert((adcp->state == ADC_READY) ||
(adcp->state == ADC_COMPLETE) ||
(adcp->state == ADC_ERROR),