We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e076f14 commit 14b7080Copy full SHA for 14b7080
ports/stm32f4/common-hal/busio/UART.c
@@ -312,6 +312,8 @@ bool common_hal_busio_uart_deinited(busio_uart_obj_t *self) {
312
}
313
314
void common_hal_busio_uart_deinit(busio_uart_obj_t *self) {
315
+ if(common_hal_busio_uart_deinited(self)) return;
316
+
317
reset_pin_number(self->tx->pin->port,self->tx->pin->number);
318
reset_pin_number(self->rx->pin->port,self->rx->pin->number);
319
self->tx = mp_const_none;
0 commit comments