From f632aae9ee1d9b04d4bf279954ba99ae77435995 Mon Sep 17 00:00:00 2001 From: Tinyu Date: Thu, 6 Nov 2025 12:27:34 +0800 Subject: [PATCH] fix(hal): correct PHY selection logic in usb_wrap_ll.h --- components/esp_hal_usb/esp32p4/include/hal/usb_wrap_ll.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esp_hal_usb/esp32p4/include/hal/usb_wrap_ll.h b/components/esp_hal_usb/esp32p4/include/hal/usb_wrap_ll.h index 30d164bea6..75d2c440d2 100644 --- a/components/esp_hal_usb/esp32p4/include/hal/usb_wrap_ll.h +++ b/components/esp_hal_usb/esp32p4/include/hal/usb_wrap_ll.h @@ -58,8 +58,10 @@ FORCE_INLINE_ATTR void usb_wrap_ll_phy_select(usb_wrap_dev_t *hw, unsigned int p switch (phy_idx) { case 0: LP_SYS.usb_ctrl.sw_usb_phy_sel = true; + break; case 1: LP_SYS.usb_ctrl.sw_usb_phy_sel = false; + break; default: break; }