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); + } } }