From cb7cdb315ed18458b98dd34bbf52fa9b555d90b4 Mon Sep 17 00:00:00 2001 From: Renze Nicolai Date: Sat, 1 Mar 2025 10:01:35 +0100 Subject: [PATCH] fix: add missing break statements to usb_serial_jtag_ll_phy_select, Closes https://github.com/espressif/esp-idf/pull/15499 --- components/hal/esp32p4/include/hal/usb_serial_jtag_ll.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/hal/esp32p4/include/hal/usb_serial_jtag_ll.h b/components/hal/esp32p4/include/hal/usb_serial_jtag_ll.h index f6b13b9a79..158cdea056 100644 --- a/components/hal/esp32p4/include/hal/usb_serial_jtag_ll.h +++ b/components/hal/esp32p4/include/hal/usb_serial_jtag_ll.h @@ -228,8 +228,10 @@ FORCE_INLINE_ATTR void usb_serial_jtag_ll_phy_select(unsigned int phy_idx) switch (phy_idx) { case 0: LP_SYS.usb_ctrl.sw_usb_phy_sel = false; + break; case 1: LP_SYS.usb_ctrl.sw_usb_phy_sel = true; + break; default: break; }