From df8a39fd26fb5749d21434e6561225bb71d54ddd Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Mon, 2 Oct 2023 10:41:05 +0200 Subject: [PATCH] Add WiFi portal timeout, increase checkBitcoinBlock stack --- src/lib/functions.cpp | 1 + src/tasks/blocknotify.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/functions.cpp b/src/lib/functions.cpp index 5d5b645..3cf9f15 100644 --- a/src/lib/functions.cpp +++ b/src/lib/functions.cpp @@ -138,6 +138,7 @@ void setupWifi() setupSoftAP(); + wm.setConfigPortalTimeout(180); wm.setAPCallback([&](WiFiManager *wifiManager) { showSetupQr(softAP_SSID, softAP_password); diff --git a/src/tasks/blocknotify.cpp b/src/tasks/blocknotify.cpp index f2427fb..72f61e8 100644 --- a/src/tasks/blocknotify.cpp +++ b/src/tasks/blocknotify.cpp @@ -109,7 +109,7 @@ void setupBlockNotify() if (blockNotifyTaskHandle == nullptr) { - xTaskCreate(checkBitcoinBlock, "checkBitcoinBlock", 4096, NULL, 1, &blockNotifyTaskHandle); + xTaskCreate(checkBitcoinBlock, "checkBitcoinBlock", 8192, NULL, 1, &blockNotifyTaskHandle); vTaskSuspend(blockNotifyTaskHandle); } // xTaskCreate(bitcoinEventHandler, "bitcoinEventHandler", 10000, NULL, 110, NULL);