Refactor LedHandler to a class

This commit is contained in:
Djuri 2025-01-05 21:19:28 +01:00
parent ac13098824
commit d023643090
Signed by: djuri
GPG key ID: 61B9B2DDE5AA3AC1
11 changed files with 931 additions and 935 deletions

View file

@ -1,4 +1,5 @@
#include "block_notify.hpp"
#include "led_handler.hpp"
char *wsServer;
esp_websocket_client_handle_t blockNotifyClient = NULL;
@ -217,7 +218,7 @@ void processNewBlock(uint32_t newBlockHeight) {
if (preferences.getBool("ledFlashOnUpd", DEFAULT_LED_FLASH_ON_UPD))
{
vTaskDelay(pdMS_TO_TICKS(250)); // Wait until screens are updated
queueLedEffect(LED_FLASH_BLOCK_NOTIFY);
getLedHandler().queueEffect(LED_FLASH_BLOCK_NOTIFY);
}
}
}