Debug - Ensure pins used for debugging are reserved correctly.
Previously the pins were initialised outside of `init` via the dshot code, not that debug pins are initialised earlier they must be reserved so that unusedPinsInit() doesn't undo the GPIO configuration.
This commit is contained in:
parent
49869fa2bb
commit
e2615fdc8c
|
@ -53,6 +53,7 @@ void dbgPinInit(void)
|
|||
if (!io) {
|
||||
continue;
|
||||
}
|
||||
IOInit(io, OWNER_SYSTEM, 0);
|
||||
IOConfigGPIO(io, IOCFG_OUT_PP);
|
||||
dbgPinState->gpio = IO_GPIO(io);
|
||||
int pinSrc = IO_GPIO_PinSource(io);
|
||||
|
|
Loading…
Reference in New Issue