Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3d57815

Browse files
authoredOct 7, 2024··
fix(uart): there is no usb serial event in 2.0.x
1 parent baad42e commit 3d57815

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎cores/esp32/HardwareSerial.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ HardwareSerial Serial2(2);
4747

4848
void serialEventRun(void)
4949
{
50-
#if HWCDC_SERIAL_IS_DEFINED == 1 // Hardware JTAG CDC Event
51-
if(HWCDCSerialEvent && HWCDCSerial.available()) HWCDCSerialEvent();
52-
#endif
53-
#if USB_SERIAL_IS_DEFINED == 1 // Native USB CDC Event
54-
if(USBSerialEvent && USBSerial.available()) USBSerialEvent();
55-
#endif
5650
// UART0 is default serialEvent()
5751
if(serialEvent && Serial.available()) serialEvent();
5852
#if SOC_UART_NUM > 1

0 commit comments

Comments
 (0)
Please sign in to comment.