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:
Dominic Clifton 2021-08-18 15:34:56 +02:00
parent 49869fa2bb
commit e2615fdc8c
1 changed files with 1 additions and 0 deletions

View File

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