From 66448da38538bcd0f24065a33c38257c6d95edb7 Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Tue, 16 May 2023 18:43:24 -0300 Subject: [PATCH] Update esp32-hal-rmt.c Optimizing Peripheral Manager Test --- cores/esp32/esp32-hal-rmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-rmt.c b/cores/esp32/esp32-hal-rmt.c index 75ce1f41ac1..ec1cf7b59bb 100644 --- a/cores/esp32/esp32-hal-rmt.c +++ b/cores/esp32/esp32-hal-rmt.c @@ -444,7 +444,7 @@ bool rmtInit(int pin, rmt_ch_dir_t channel_direction, rmt_reserve_memsize_t mem_ } // Try to dettach any (Tx|Rx|Whatever) previous bus or just keep it as not attached - if (perimanGetPinBusType(pin) != ESP32_BUS_TYPE_INIT && !perimanSetPinBus(pin, ESP32_BUS_TYPE_INIT, NULL)) { + if (!perimanSetPinBus(pin, ESP32_BUS_TYPE_INIT, NULL)) { log_w("GPIO %d - Can't detach previous peripheral.", pin); return false; }