From e2615fdc8c1efc9b99570722606e80b3a307e6a6 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Wed, 18 Aug 2021 15:34:56 +0200 Subject: [PATCH] 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. --- src/main/build/debug_pin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/build/debug_pin.c b/src/main/build/debug_pin.c index cc05ee193..314bda84f 100644 --- a/src/main/build/debug_pin.c +++ b/src/main/build/debug_pin.c @@ -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);