1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

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.

This commit is contained in:
Ben Hitchcock 2015-01-17 22:29:06 +08:00
parent d72983e150
commit 82161882bb

View file

@ -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