Skip to content

Commit b318433

Browse files
authored
fix: UART0 boot pin setup
1 parent 17b266e commit b318433

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/esp32/HardwareSerial.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ _eventTask(NULL)
9999
}
100100
}
101101
#endif
102+
// do the same as boot time, that will set default UART0 pins RX, TX.
103+
if(uart_nr == 0) uartSetPins(0, SOC_RX0, SOC_TX0, -1, -1);
102104
}
103105

104106
HardwareSerial::~HardwareSerial()

0 commit comments

Comments
 (0)