summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucian Copeland <hierophect@gmail.com>2021-03-11 11:02:13 -0500
committerLucian Copeland <hierophect@gmail.com>2021-03-11 11:02:13 -0500
commit1ebbd14d0faab0da6673b595f4d25c17a67c24aa (patch)
tree5a798fdecd2de74d646d39c2fcf4c3779baf35ae
parent15e97f12a1be8b2aa625b59d127b6d1db530a18b (diff)
Fix UART deinit
-rw-r--r--ports/stm/common-hal/busio/UART.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/stm/common-hal/busio/UART.c b/ports/stm/common-hal/busio/UART.c
index 0cd906181..b4794a31b 100644
--- a/ports/stm/common-hal/busio/UART.c
+++ b/ports/stm/common-hal/busio/UART.c
@@ -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;
}