mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Reset bind pin when override is in effect.
This commit is contained in:
parent
74f34d463d
commit
42fa95c2d0
1 changed files with 10 additions and 0 deletions
|
@ -273,6 +273,16 @@ void spektrumBind(rxConfig_t *rxConfig)
|
|||
|
||||
}
|
||||
|
||||
|
||||
// Release the bind pin to avoid interference with an actual rx pin,
|
||||
// when rxConfig->spektrum_bind_pin_override_ioTag is used.
|
||||
// This happens when the bind pin is connected in parallel to the rx pin.
|
||||
|
||||
if (rxConfig->spektrum_bind_pin_override_ioTag) {
|
||||
delay(50); // Keep it high for 50msec
|
||||
IOConfigGPIO(bindIO, IOCFG_IN_FLOATING);
|
||||
}
|
||||
|
||||
// If we came here as a result of hard reset (power up, with spektrum_sat_bind set), then reset it back to zero and write config
|
||||
// Don't reset if hardware bind plug is present
|
||||
// Reset only when autoreset is enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue