Skip to content

Commit

Permalink
fix(uart): there is no usb serial event in 2.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SuGlider authored Oct 7, 2024
1 parent baad42e commit 3d57815
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cores/esp32/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ HardwareSerial Serial2(2);

void serialEventRun(void)
{
#if HWCDC_SERIAL_IS_DEFINED == 1 // Hardware JTAG CDC Event
if(HWCDCSerialEvent && HWCDCSerial.available()) HWCDCSerialEvent();
#endif
#if USB_SERIAL_IS_DEFINED == 1 // Native USB CDC Event
if(USBSerialEvent && USBSerial.available()) USBSerialEvent();
#endif
// UART0 is default serialEvent()
if(serialEvent && Serial.available()) serialEvent();
#if SOC_UART_NUM > 1
Expand Down

0 comments on commit 3d57815

Please sign in to comment.