auto-sync
This commit is contained in:
parent
6377c10a1c
commit
ba8d743aa2
|
@ -157,9 +157,9 @@ static void pwmpcb_slow(PWMDriver *pwmp) {
|
||||||
terminate before the next PWM cycle.*/
|
terminate before the next PWM cycle.*/
|
||||||
chSysLockFromIsr()
|
chSysLockFromIsr()
|
||||||
;
|
;
|
||||||
if (ADC_FAST_DEVICE.state != ADC_READY &&
|
if (ADC_SLOW_DEVICE.state != ADC_READY &&
|
||||||
ADC_FAST_DEVICE.state != ADC_COMPLETE &&
|
ADC_SLOW_DEVICE.state != ADC_COMPLETE &&
|
||||||
ADC_FAST_DEVICE.state != ADC_ERROR) {
|
ADC_SLOW_DEVICE.state != ADC_ERROR) {
|
||||||
// todo: why and when does this happen? firmwareError("ADC slow not ready?");
|
// todo: why and when does this happen? firmwareError("ADC slow not ready?");
|
||||||
slowAdc.errorsCount++;
|
slowAdc.errorsCount++;
|
||||||
chSysUnlockFromIsr()
|
chSysUnlockFromIsr()
|
||||||
|
|
Loading…
Reference in New Issue