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:
parent
29fdfb3071
commit
c84eb1c6ad
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue