Fix GPIO state when initializing CYW43 pin

Closes: #7063
This commit is contained in:
Jeff Epler 2022-10-15 13:10:22 -05:00
parent 8c16093963
commit d4b1d4d430
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

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