From c25c57800545b1fea3aeec9b8c4128df0f6caa21 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Tue, 7 Nov 2023 07:24:10 +0100 Subject: [PATCH] Prechod od Interrupts na ACPU --- src/WSLed.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/WSLed.cpp b/src/WSLed.cpp index b2f3984..4c29d10 100644 --- a/src/WSLed.cpp +++ b/src/WSLed.cpp @@ -1,6 +1,6 @@ // Ovladani signalizacni chytre LED diody #include "WSLed.hpp" -#include +#include #if defined(ARDUINO_ARCH_ESP32) // # include "esp_task.h" // https://github.com/JSchaenzle/ESP32-NeoPixel-WS2812-RMT/blob/master/ws2812_control.c @@ -66,13 +66,13 @@ void wsLED::show() ESP_ERROR_CHECK(rmt_write_items(LED_RMT_TX_CHANNEL, led_data_buffer, LED_BUFFER_ITEMS, false)); mEndTime = micros() + 100; // TODO: unfortunately this time is not valid for ESP32 using RMT peripheral #else - Interrupts::disable(); + ACPU::disableInterrupts(); #if defined(WSLED_PL9823) espShow(mPin, color, 1 * 3, false); #else espShow(mPin, color, 1 * 3, true); #endif - Interrupts::enable(); + ACPU::enableInterrupts(); mEndTime = micros(); #endif }