Skip to content

Commit 5192082

Browse files
authored
Merge pull request #7064 from jepler/rp2-cyw43-pin-in-use
Fix GPIO state when initializing CYW43 pin
2 parents 8c16093 + d4b1d4d commit 5192082

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)