Skip to content

Commit f4f1c89

Browse files
SuGliderme-no-dev
andauthored
pinMatrixInDetach() has wrong parameter (#5385)
Fixes #5112 Call to pinMatrixInDetach() was changed from version 1.0.6 in version 2.0.0 injecting a bug as seen in cores/esp32/esp32-hal-uart.c 80418fa Co-authored-by: Me No Dev <[email protected]>
1 parent cbcba53 commit f4f1c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-uart.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static void uartDetachRx(uart_t* uart, uint8_t rxPin)
179179
if(uart == NULL) {
180180
return;
181181
}
182-
pinMatrixInDetach(rxPin, false, false);
182+
pinMatrixInDetach(UART_RXD_IDX(uart->num), false, false);
183183
uartDisableInterrupt(uart);
184184
}
185185

0 commit comments

Comments
 (0)