Reset bind pin when override is in effect.

This commit is contained in:
jflyper 2017-06-20 10:08:46 +09:00
parent 74f34d463d
commit 42fa95c2d0
1 changed files with 10 additions and 0 deletions

View File

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