Skip to content

Commit 1ebbd14

Browse files
committed
Fix UART deinit
1 parent 15e97f1 commit 1ebbd14

File tree

1 file changed

+1
-0
lines changed
  • ports/stm/common-hal/busio

1 file changed

+1
-0
lines changed

ports/stm/common-hal/busio/UART.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ void common_hal_busio_uart_deinit(busio_uart_obj_t *self) {
268268

269269
for (size_t i = 0; i < MP_ARRAY_SIZE(mcu_uart_banks); i++) {
270270
if (mcu_uart_banks[i] == self->handle.Instance) {
271+
reserved_uart[i] = false;
271272
never_reset_uart[i] = false;
272273
break;
273274
}

0 commit comments

Comments
 (0)