From c5e6aa7495448abd2c24b607e2cd2d120978fa1e Mon Sep 17 00:00:00 2001 From: Clemens Kirchgatterer Date: Tue, 28 Nov 2023 18:40:49 +0100 Subject: [PATCH] Fix compilation when NO_GLOBAL_SERIAL is defined. --- cores/esp32/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/esp32/main.cpp b/cores/esp32/main.cpp index ea61cac067a..f5d67bc0470 100644 --- a/cores/esp32/main.cpp +++ b/cores/esp32/main.cpp @@ -45,8 +45,10 @@ __attribute__((weak)) bool shouldPrintChipDebugReport(void) { void loopTask(void *pvParameters) { +#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL) // sets UART0 (default console) RX/TX pins as already configured in boot or as defined in variants/pins_arduino.h Serial0.setPins(SOC_RX0, SOC_TX0); +#endif #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG printBeforeSetupInfo(); #else