From 8fb350d4e77f19ca8f0e9bb387b59ccfde4b6621 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Fri, 17 Nov 2023 13:58:24 +0100 Subject: [PATCH] Prechod na Interrupts namespace --- src/WSLed.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WSLed.cpp b/src/WSLed.cpp index 4c29d10..6e26e6f 100644 --- a/src/WSLed.cpp +++ b/src/WSLed.cpp @@ -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 - ACPU::disableInterrupts(); + ACPU::Interrupts::disable(); #if defined(WSLED_PL9823) espShow(mPin, color, 1 * 3, false); #else espShow(mPin, color, 1 * 3, true); #endif - ACPU::enableInterrupts(); + ACPU::Interrupts::enable(); mEndTime = micros(); #endif }