From adfe2ba5d8ab26d8021af879c8bf4571d6ed2570 Mon Sep 17 00:00:00 2001 From: Chen Chen Date: Wed, 6 May 2026 14:45:59 +0800 Subject: [PATCH] fix(uhci): correct rx_fsm initialization enum type Closes https://github.com/espressif/esp-idf/issues/18541 Co-authored-by: Cursor --- components/esp_driver_uart/src/uhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_driver_uart/src/uhci.c b/components/esp_driver_uart/src/uhci.c index ef25ee76aaf..feceb5ebe73 100644 --- a/components/esp_driver_uart/src/uhci.c +++ b/components/esp_driver_uart/src/uhci.c @@ -496,7 +496,7 @@ esp_err_t uhci_new_controller(const uhci_controller_config_t *config, uhci_contr } atomic_init(&uhci_ctrl->tx_dir.tx_fsm, UHCI_TX_FSM_ENABLE); - atomic_init(&uhci_ctrl->rx_dir.rx_fsm, UHCI_TX_FSM_ENABLE); + atomic_init(&uhci_ctrl->rx_dir.rx_fsm, UHCI_RX_FSM_ENABLE); // Auto search a free controller bool ctrl_found = false;