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
80418fadcf

Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
This commit is contained in:
Rodrigo Garcia 2021-07-14 20:07:43 -03:00 committed by GitHub
parent cbcba53dff
commit f4f1c8956b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}