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:
parent
d72983e150
commit
82161882bb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue