Skip to content

Commit 0e451a1

Browse files
authored
Merge pull request #4383 from hierophect/stm32-uart-dereserve
STM32: Fix UART deinit
2 parents 40886d1 + 1ebbd14 commit 0e451a1

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)