Skip to content

Commit 5f6373c

Browse files
authored
Update cores/esp32/HWCDC.cpp
1 parent 05a35cd commit 5f6373c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cores/esp32/HWCDC.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ void HWCDC::begin(unsigned long baud)
252252
goto err;
253253
}
254254
}
255-
if(!perimanSetPinBus(pin, ESP32_BUS_TYPE_USB_DM, (void *) this, -1, -1)) goto err;
255+
if(!perimanSetPinBus(pin, ESP32_BUS_TYPE_USB_DM, (void *) this, -1, -1)){
256+
goto err;
257+
}
256258
pin = ESP32_BUS_TYPE_USB_DP;
257259
if(perimanGetPinBusType(pin) != ESP32_BUS_TYPE_INIT){
258260
if(!perimanClearPinBus(pin)){

0 commit comments

Comments
 (0)