From 8f30e605e6611b5d5c61c24d5d0cfb17589f117d Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 11 Mar 2016 11:26:13 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9070 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal') 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), -- cgit v1.2.3