Skip to content

Commit 3471166

Browse files
committed
clang
1 parent 455e21f commit 3471166

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/arduino/ports/esp32/Adafruit_TinyUSB_esp32.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)