Add market cap in big characters

This commit is contained in:
Djuri 2023-11-10 20:59:08 +01:00
parent 705f27fda9
commit b7f0f1014c
7 changed files with 122 additions and 31 deletions

View file

@ -94,8 +94,12 @@ void onWebsocketMessage(esp_websocket_event_data_t *event_data)
if (blockUpdateTaskHandle != nullptr) {
xTaskNotifyGive(blockUpdateTaskHandle);
if (preferences.getBool("ledFlashOnUpd", false)) {
if (getCurrentScreen() != SCREEN_BLOCK_HEIGHT && preferences.getBool("stealFocus", true)) {
setCurrentScreen(SCREEN_BLOCK_HEIGHT);
}
if (getCurrentScreen() == SCREEN_BLOCK_HEIGHT && preferences.getBool("ledFlashOnUpd", false)) {
vTaskDelay(pdMS_TO_TICKS(250)); // Wait until screens are updated
queueLedEffect(LED_FLASH_BLOCK_NOTIFY);
}