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 f7483ea commit 35aacacCopy full SHA for 35aacac
cores/esp32/HardwareSerial.cpp
@@ -107,10 +107,6 @@ _eventTask(NULL)
107
}
108
109
#endif
110
- // sets UART0 (default console) RX/TX pins as already configured in boot
111
- if (uart_nr == 0) {
112
- setPins(SOC_RX0, SOC_TX0);
113
- }
114
// set deinit function in the Peripheral Manager
115
uart_init_PeriMan();
116
cores/esp32/main.cpp
@@ -45,6 +45,8 @@ __attribute__((weak)) bool shouldPrintChipDebugReport(void) {
45
46
void loopTask(void *pvParameters)
47
{
48
+ // sets UART0 (default console) RX/TX pins as already configured in boot or as defined in variants/pins_arduino.h
49
+ Serial0.setPins(SOC_RX0, SOC_TX0);
50
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
51
printBeforeSetupInfo();
52
#else
0 commit comments