We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c80fe2 commit 65b728eCopy full SHA for 65b728e
platformio.ini
@@ -213,4 +213,5 @@ build_flags = ${env.build_flags}
213
-DCMT_GPIO2=3
214
-DCMT_GPIO3=8
215
-DCMT_SDIO=5
216
- -DARDUINO_USB_MODE=1
+ -DARDUINO_USB_MODE=1
217
+ -DARDUINO_USB_CDC_ON_BOOT=1
src/main.cpp
@@ -26,8 +26,13 @@ void setup()
26
{
27
// Initialize serial output
28
Serial.begin(SERIAL_BAUDRATE);
29
+#if ARDUINO_USB_CDC_ON_BOOT
30
+ Serial.setTxTimeoutMs(0);
31
+ delay(100);
32
+#else
33
while (!Serial)
34
yield();
35
+#endif
36
MessageOutput.println();
37
MessageOutput.println("Starting OpenDTU");
38
0 commit comments