Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 57e8e50

Browse files
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

‎cores/esp32/main.cpp‎

Lines changed: 2 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /