From ec7bcbe2628f852418ea063e8c730b200fb36ae5 Mon Sep 17 00:00:00 2001 From: Philippe-France Date: Sat, 24 Jan 2015 15:08:51 +0100 Subject: [PATCH] solution of issue 318 --- src/main/drivers/pwm_rx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/drivers/pwm_rx.c b/src/main/drivers/pwm_rx.c index e0b72a6ba..5d057a050 100644 --- a/src/main/drivers/pwm_rx.c +++ b/src/main/drivers/pwm_rx.c @@ -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; } }