Fix UART deinit

This commit is contained in:
Lucian Copeland 2021-03-11 11:02:13 -05:00
parent 15e97f12a1
commit 1ebbd14d0f

View File

@ -268,6 +268,7 @@ void common_hal_busio_uart_deinit(busio_uart_obj_t *self) {
for (size_t i = 0; i < MP_ARRAY_SIZE(mcu_uart_banks); i++) {
if (mcu_uart_banks[i] == self->handle.Instance) {
reserved_uart[i] = false;
never_reset_uart[i] = false;
break;
}