Skip to content

Commit

Permalink
pinMatrixInDetach() has wrong parameter (espressif#5385)
Browse files Browse the repository at this point in the history
Fixes espressif#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
espressif@80418fa

Co-authored-by: Me No Dev <[email protected]>
  • Loading branch information
SuGlider and me-no-dev authored Jul 14, 2021
1 parent cbcba53 commit f4f1c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp32/esp32-hal-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static void uartDetachRx(uart_t* uart, uint8_t rxPin)
if(uart == NULL) {
return;
}
pinMatrixInDetach(rxPin, false, false);
pinMatrixInDetach(UART_RXD_IDX(uart->num), false, false);
uartDisableInterrupt(uart);
}

Expand Down

0 comments on commit f4f1c89

Please sign in to comment.