diff --git a/cores/esp32/esp32-hal-rmt.c b/cores/esp32/esp32-hal-rmt.c index d46caf833b10c093a7a130626f9c741233508e32..072924b234fbd85f88c93ecba8796bac6751c999 100644 --- a/cores/esp32/esp32-hal-rmt.c +++ b/cores/esp32/esp32-hal-rmt.c @@ -46,8 +46,8 @@ #define _INT_THR_EVNT(channel) ((__INT_THR_EVNT)<<(channel)) #if CONFIG_DISABLE_HAL_LOCKS -# define UART_MUTEX_LOCK(channel) -# define UART_MUTEX_UNLOCK(channel) +# define RMT_MUTEX_LOCK(channel) +# define RMT_MUTEX_UNLOCK(channel) #else # define RMT_MUTEX_LOCK(channel) do {} while (xSemaphoreTake(g_rmt_objlocks[channel], portMAX_DELAY) != pdPASS) # define RMT_MUTEX_UNLOCK(channel) xSemaphoreGive(g_rmt_objlocks[channel])