mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-22 21:23:07 +03:00
Force disable IOSWAP for UART0 in HardwareSerial initialization (#744)
This commit is contained in:
parent
70711387df
commit
32cc374921
@ -290,6 +290,7 @@ uart_t* uart_init(int uart_nr, int baudrate, byte config, byte mode) {
|
||||
uart->txPin = (uart->txEnabled)?1:255;
|
||||
if(uart->rxEnabled) pinMode(uart->rxPin, SPECIAL);
|
||||
if(uart->txEnabled) pinMode(uart->txPin, SPECIAL);
|
||||
IOSWAP &= ~(1 << IOSWAPU0);
|
||||
break;
|
||||
case UART1:
|
||||
uart->rxEnabled = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user