Fix missing ELRS GPIO configuration. GPIO pins need to be in INPUT mode before they...
commitb06e6616d40f29fa95e3c5bcbea78743fc2b1b51
authorDominic Clifton <dominic.clifton@cleanflight.com>
Fri, 4 Mar 2022 19:22:52 +0000 (4 20:22 +0100)
committerDominic Clifton <dominic.clifton@cleanflight.com>
Sun, 6 Mar 2022 10:25:29 +0000 (6 11:25 +0100)
treef1568fb5e67b4fbf47b3504dfa5055e1286669c0
parent5b5df65934ad05c0cc95f856ffcdb1f4e7c170f5
Fix missing ELRS GPIO configuration.  GPIO pins need to be in INPUT mode before they can be read via IDR.

The reason it's broken on the H7 is that the default gpio mode is
ANALOG, not INPUT like it is on other MCUs, and that the busy pin is
used before communication to the SX1280 and the busy wait function
returns to early because the GPIO IDR bit is always 0 on the H7.  i.e.
not busy, when it is.

It may also be broken on other MCUs prior to this.
src/main/drivers/rx/rx_sx1280.c