Prechod na Interrupts namespace

This commit is contained in:
Pavel Brychta 2023-11-17 13:58:24 +01:00
parent c25c578005
commit 8fb350d4e7

View File

@ -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
}