From dd32f6cc427c379c6e808d73fd55daa99da00719 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Wed, 8 Nov 2023 15:33:37 +0100 Subject: [PATCH] Small fixes --- src/lib/block_notify.cpp | 2 +- src/lib/screen_handler.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/block_notify.cpp b/src/lib/block_notify.cpp index 7df45bf..9c5bf4d 100644 --- a/src/lib/block_notify.cpp +++ b/src/lib/block_notify.cpp @@ -32,7 +32,7 @@ void setupBlockNotify() { String blockHeightStr = http->getString(); currentBlockHeight = blockHeightStr.toInt(); - // xTaskNotifyGive(blockUpdateTaskHandle); + xTaskNotifyGive(blockUpdateTaskHandle); } // std::strcpy(wsServer, String("wss://" + mempoolInstance + "/api/v1/ws").c_str()); diff --git a/src/lib/screen_handler.cpp b/src/lib/screen_handler.cpp index d891ecd..81d0b07 100644 --- a/src/lib/screen_handler.cpp +++ b/src/lib/screen_handler.cpp @@ -115,7 +115,9 @@ void taskBlockUpdate(void *pvParameters) taskEpdContent[(NUM_SCREENS - 1)] = "TO/GO"; } - setEpdContent(taskEpdContent); + if (getCurrentScreen() == SCREEN_HALVING_COUNTDOWN || getCurrentScreen() == SCREEN_BLOCK_HEIGHT) { + setEpdContent(taskEpdContent); + } } }