mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
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.
This commit is contained in:
parent
5b5df65934
commit
b06e6616d4
1 changed files with 1 additions and 0 deletions
|
@ -208,6 +208,7 @@ bool sx1280Init(IO_t resetPin, IO_t busyPin)
|
|||
|
||||
if (busyPin) {
|
||||
IOInit(busyPin, OWNER_RX_SPI_EXPRESSLRS_BUSY, 0);
|
||||
IOConfigGPIO(busyPin, IOCFG_IN_FLOATING);
|
||||
} else {
|
||||
busyPin = IO_NONE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue