Merge pull request #4383 from hierophect/stm32-uart-dereserve

STM32: Fix UART deinit
This commit is contained in:
Scott Shawcroft 2021-03-11 10:48:01 -08:00 committed by GitHub
commit 0e451a1681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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