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

Appearance settings

Commit c1b06cc

Browse filesBrowse files
authored
Fix possible race condition in uart attach (espressif#4569)
1 parent 93c6226 commit c1b06cc
Copy full SHA for c1b06cc

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎cores/esp32/esp32-hal-uart.c

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-uart.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ void uartAttachRx(uart_t* uart, uint8_t rxPin, bool inverted)
185185
return;
186186
}
187187
pinMode(rxPin, INPUT);
188-
pinMatrixInAttach(rxPin, UART_RXD_IDX(uart->num), inverted);
189188
uartEnableInterrupt(uart);
189+
pinMatrixInAttach(rxPin, UART_RXD_IDX(uart->num), inverted);
190190
}
191191

192192
void uartAttachTx(uart_t* uart, uint8_t txPin, bool inverted)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.