Skip to content

Commit f305264

Browse files
committed
Add debugging out the USB port
1 parent 8c34f19 commit f305264

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Tx_main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,10 @@ RF_PRE_INIT()
359359

360360
void setup()
361361
{
362-
#ifdef DEBUG_LOG
363-
Serial1.begin(115200);
364-
Serial1.setDebugOutput(true);
365-
#endif
362+
#ifdef DEBUG_LOG
363+
LOGGING_UART.begin(115200);
364+
LOGGING_UART.setDebugOutput(true);
365+
#endif
366366
Serial.setRxBufferSize(4096);
367367
Serial.begin(460800);
368368

targets/common.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ upload_resetmethod = nodemcu
6262
board_build.f_cpu = 160000000L
6363
build_flags =
6464
-D PLATFORM_ESP32=1
65+
-D ARDUINO_USB_MODE=1
6566

6667
# ------------------------- COMMON ESP32S3 DEFINITIONS -----------------
6768
[env_common_esp32s3]

0 commit comments

Comments
 (0)