Skip to content

Commit 90b3413

Browse files
authored
bugfix(uart): fix signal glitch on tx pin
see espressif#1061
1 parent 7fa8caf commit 90b3413

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/esp32-hal-uart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ void uartAttachTx(uart_t* uart, uint8_t txPin, bool inverted)
154154
return;
155155
}
156156
pinMode(txPin, OUTPUT);
157+
digitalWrite(txPin, HIGH);
157158
pinMatrixOutAttach(txPin, UART_TXD_IDX(uart->num), inverted, false);
158159
}
159160

0 commit comments

Comments
 (0)