Skip to content

Commit 57e8e50

Browse files
authored
Fix compilation when NO_GLOBAL_SERIAL is defined. (#8933)
1 parent db7b349 commit 57e8e50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: cores/esp32/main.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ __attribute__((weak)) bool shouldPrintChipDebugReport(void) {
4545

4646
void loopTask(void *pvParameters)
4747
{
48+
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
4849
// sets UART0 (default console) RX/TX pins as already configured in boot or as defined in variants/pins_arduino.h
4950
Serial0.setPins(SOC_RX0, SOC_TX0);
51+
#endif
5052
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
5153
printBeforeSetupInfo();
5254
#else

0 commit comments

Comments
 (0)