Unverified Commit f4f1c895 authored by Rodrigo Garcia's avatar Rodrigo Garcia Committed by GitHub

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/80418fadcfb91c75d5100a8fddeb9318a8ef7d42Co-authored-by: default avatarMe No Dev <me-no-dev@users.noreply.github.com>
parent cbcba53d
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment