We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60dd40e commit 656e68eCopy full SHA for 656e68e
libraries/ESP32/examples/HWCDC_Events/HWCDC_Events.ino
@@ -15,9 +15,7 @@
15
#ifndef ARDUINO_USB_MODE
16
#error This ESP32 SoC has no Native USB interface
17
#elif ARDUINO_USB_MODE == 0
18
-#warning This sketch should be used when USB is in Hardware CDC and JTAG mode
19
-void setup(){}
20
-void loop(){}
+#error This sketch should be used when USB is in Hardware CDC and JTAG mode
21
#else
22
23
#if !ARDUINO_USB_CDC_ON_BOOT
@@ -63,8 +61,8 @@ const char* HWCDC_Status() {
63
61
}
64
62
65
void setup() {
66
- USBSerial.onEvent(usbEventCallback);
67
- USBSerial.begin();
+ HWCDCSerial.onEvent(usbEventCallback);
+ HWCDCSerial.begin();
68
69
Serial0.begin(115200);
70
Serial0.setDebugOutput(true);
0 commit comments