File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,11 @@ void TinyUSB_Port_InitDevice(uint8_t rhport) {
123123 usb_hal_init (&hal);
124124 configure_pins (&hal);
125125
126- // reset core, should be in dcd_esp32sx.c (do that later with more proper testing)
126+ // reset core, should be in dcd_esp32sx.c (do that later with more proper
127+ // testing)
127128 USB0.grstctl |= USB_CSFTRST;
128- while ((USB0.grstctl & USB_CSFTRST) == USB_CSFTRST) {}
129+ while ((USB0.grstctl & USB_CSFTRST) == USB_CSFTRST) {
130+ }
129131
130132 tusb_init ();
131133
@@ -139,7 +141,8 @@ void TinyUSB_Port_EnterDFU(void) {
139141
140142 // Reset USB Core
141143 USB0.grstctl |= USB_CSFTRST;
142- while ((USB0.grstctl & USB_CSFTRST) == USB_CSFTRST) {}
144+ while ((USB0.grstctl & USB_CSFTRST) == USB_CSFTRST) {
145+ }
143146
144147 REG_WRITE (RTC_CNTL_OPTION1_REG, RTC_CNTL_FORCE_DOWNLOAD_BOOT);
145148 esp_restart ();
You can’t perform that action at this time.
0 commit comments