Movatterモバイル変換


[0]ホーム

URL:


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

Commit0e0ad1f

Browse files
authored
Allow UART1 to be inverted (#8601)
1 parentbdc71e5 commit0e0ad1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎cores/esp8266/uart.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ uart_init(int uart_nr, int baudrate, int config, int mode, int tx_pin, size_t rx
696696
}
697697

698698
uart_set_baudrate(uart, baudrate);
699-
if(uart->uart_nr == UART0 && invert)
699+
if((uart->uart_nr == UART0 || uart->uart_nr == UART1) && invert)
700700
{
701701
config |=BIT(UCDTRI) |BIT(UCRTSI) |BIT(UCTXI) |BIT(UCDSRI) |BIT(UCCTSI) |BIT(UCRXI);
702702
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp