git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.0.x@2010 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2010-06-12 05:56:12 +00:00
parent 29fdfb3071
commit c84eb1c6ad
1 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,9 @@ void adcStop(ADCDriver *adcp) {
chDbgCheck(adcp != NULL, "adcStop");
chSysLock();
chDbgAssert((adcp->ad_state == ADC_STOP) || (adcp->ad_state == ADC_READY),
chDbgAssert((adcp->ad_state == ADC_STOP) ||
(adcp->ad_state == ADC_READY) ||
(adcp->ad_state == ADC_COMPLETE),
"adcStop(), #1",
"invalid state");
adc_lld_stop(adcp);