From 82161882bb6c652e30f6e02be9b519b2abe06c2e Mon Sep 17 00:00:00 2001 From: Ben Hitchcock Date: Sat, 17 Jan 2015 22:29:06 +0800 Subject: [PATCH] Bugfix for situations where Rx mapping is being used, and failsafe is kicking in unecessarily. An example is when a GPS is being used on UART2 (Rx pin 4), with the mapping of AET4R123. This code prevents failsafe being triggered by GPS data on Rx pin 4. --- src/main/rx/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/rx/rx.c b/src/main/rx/rx.c index 8e4bda1e..8ab48f53 100644 --- a/src/main/rx/rx.c +++ b/src/main/rx/rx.c @@ -289,7 +289,7 @@ void processRxChannels(void) uint16_t sample = rcReadRawFunc(&rxRuntimeConfig, rawChannel); if (feature(FEATURE_FAILSAFE) && shouldCheckPulse) { - failsafe->vTable->checkPulse(rawChannel, sample); + failsafe->vTable->checkPulse(chan, sample); } // validate the range