aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-03-11 11:26:13 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-03-11 11:26:13 +0000
commit8f30e605e6611b5d5c61c24d5d0cfb17589f117d (patch)
treef5e988f1ced7500b61d53c6a98baec1faaf569f8 /os/hal/src
parentb77ca0d67a290bc9cd615560bab2b8a214771119 (diff)
downloadChibiOS-8f30e605e6611b5d5c61c24d5d0cfb17589f117d.tar.gz
ChibiOS-8f30e605e6611b5d5c61c24d5d0cfb17589f117d.tar.bz2
ChibiOS-8f30e605e6611b5d5c61c24d5d0cfb17589f117d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9070 35acf78f-673a-0410-8e92-d51de3d6d3f4
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),
'>149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208