From f4f1c8956beeda99c376b86c7ba3eff1ba431581 Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia <65977697+SuGlider@users.noreply.github.com> Date: Wed, 14 Jul 2021 20:07:43 -0300 Subject: [PATCH] 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 https://github.com/espressif/arduino-esp32/commit/80418fadcfb91c75d5100a8fddeb9318a8ef7d42 Co-authored-by: Me No Dev --- cores/esp32/esp32-hal-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-uart.c b/cores/esp32/esp32-hal-uart.c index ad01710a..a99adf44 100644 --- a/cores/esp32/esp32-hal-uart.c +++ b/cores/esp32/esp32-hal-uart.c @@ -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); }