From d4b1d4d430e0c62ab316fa8ef8e710bedfbf55ef Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Sat, 15 Oct 2022 13:10:22 -0500 Subject: [PATCH] Fix GPIO state when initializing CYW43 pin Closes: #7063 --- ports/raspberrypi/common-hal/digitalio/DigitalInOut.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ports/raspberrypi/common-hal/digitalio/DigitalInOut.c b/ports/raspberrypi/common-hal/digitalio/DigitalInOut.c index bbb521ffc5..1490771661 100644 --- a/ports/raspberrypi/common-hal/digitalio/DigitalInOut.c +++ b/ports/raspberrypi/common-hal/digitalio/DigitalInOut.c @@ -50,6 +50,12 @@ digitalinout_result_t common_hal_digitalio_digitalinout_construct( self->output = false; self->open_drain = false; + #if CIRCUITPY_CYW43 + if (IS_CYW(self)) { + return DIGITALINOUT_OK; + } + #endif + // Set to input. No output value. gpio_init(pin->number); return DIGITALINOUT_OK;