1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

solution of issue 318

This commit is contained in:
Philippe-France 2015-01-24 15:08:51 +01:00
parent 6f7256242d
commit ec7bcbe262

View file

@ -234,9 +234,7 @@ static void pwmOverflowCallback(timerOvrHandlerRec_t* cbRec, captureCompare_t ca
pwmInputPort_t *pwmInputPort = container_of(cbRec, pwmInputPort_t, overflowCb);
if (++pwmInputPort->missedEvents > MAX_MISSED_PWM_EVENTS) {
if (pwmInputPort->state == 0) {
captures[pwmInputPort->channel] = PPM_RCVR_TIMEOUT;
}
captures[pwmInputPort->channel] = PPM_RCVR_TIMEOUT;
pwmInputPort->missedEvents = 0;
}
}