mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
solution of issue 318
This commit is contained in:
parent
6f7256242d
commit
ec7bcbe262
1 changed files with 1 additions and 3 deletions
|
@ -234,9 +234,7 @@ static void pwmOverflowCallback(timerOvrHandlerRec_t* cbRec, captureCompare_t ca
|
||||||
pwmInputPort_t *pwmInputPort = container_of(cbRec, pwmInputPort_t, overflowCb);
|
pwmInputPort_t *pwmInputPort = container_of(cbRec, pwmInputPort_t, overflowCb);
|
||||||
|
|
||||||
if (++pwmInputPort->missedEvents > MAX_MISSED_PWM_EVENTS) {
|
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;
|
pwmInputPort->missedEvents = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue