Skip to content

Commit d4b1d4d

Browse files
committed
Fix GPIO state when initializing CYW43 pin
Closes: #7063
1 parent 8c16093 commit d4b1d4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ports/raspberrypi/common-hal/digitalio/DigitalInOut.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ digitalinout_result_t common_hal_digitalio_digitalinout_construct(
5050
self->output = false;
5151
self->open_drain = false;
5252

53+
#if CIRCUITPY_CYW43
54+
if (IS_CYW(self)) {
55+
return DIGITALINOUT_OK;
56+
}
57+
#endif
58+
5359
// Set to input. No output value.
5460
gpio_init(pin->number);
5561
return DIGITALINOUT_OK;

0 commit comments

Comments
 (0)