From 279d3c6db713e7a3cdf648a81324a8491b516f44 Mon Sep 17 00:00:00 2001 From: iranl Date: Fri, 20 Jun 2025 21:59:38 +0200 Subject: [PATCH] Update to No PSRAM --- src/Config.h | 8 ++++---- src/WebCfgServer.cpp | 18 ++++++++++++++++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/Config.h b/src/Config.h index c6b989a..f3bd2d5 100644 --- a/src/Config.h +++ b/src/Config.h @@ -211,10 +211,10 @@ #define GITHUB_BETA_UPDATER_BINARY_URL_DBG (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/debug/beta/nuki_hub_updater_esp32nopsram.bin" #define GITHUB_MASTER_RELEASE_BINARY_URL_DBG (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/debug/master/nuki_hub_esp32nopsram.bin" #define GITHUB_MASTER_UPDATER_BINARY_URL_DBG (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/debug/master/nuki_hub_updater_esp32nopsram.bin" -#define GITHUB_LATEST_RELEASE_BINARY_URL_OTHER (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/nuki_hub_esp32.bin" -#define GITHUB_LATEST_UPDATER_BINARY_URL_OTHER (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/nuki_hub_updater_esp32.bin" -#define GITHUB_LATEST_RELEASE_BINARY_URL_OTHER2 (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/nuki_hub_esp32gls10.bin" -#define GITHUB_LATEST_UPDATER_BINARY_URL_OTHER2 (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/nuki_hub_updater_esp32gls10.bin" +#define GITHUB_LATEST_RELEASE_BINARY_URL_OTHER (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/nuki_hub_esp32gls10.bin" +#define GITHUB_LATEST_UPDATER_BINARY_URL_OTHER (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/nuki_hub_updater_esp32gls10.bin" +#define GITHUB_LATEST_RELEASE_BINARY_URL_OTHER2 (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/nuki_hub_esp32.bin" +#define GITHUB_LATEST_UPDATER_BINARY_URL_OTHER2 (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/nuki_hub_updater_esp32.bin" #define NUKI_HUB_HW (char*)"ESP32 (No PSRAM)" #define BOOT_BUTTON_GPIO (gpio_num_t)0 #endif diff --git a/src/WebCfgServer.cpp b/src/WebCfgServer.cpp index a9dc51d..a76781b 100644 --- a/src/WebCfgServer.cpp +++ b/src/WebCfgServer.cpp @@ -1637,16 +1637,30 @@ esp_err_t WebCfgServer::buildOtaHtml(PsychicRequest *request, PsychicResponse* r response.print("

"); response.print("

"); response.print("

"); - #if defined(CONFIG_SOC_SPIRAM_SUPPORTED) && defined(CONFIG_SPIRAM) + #if defined(CONFIG_IDF_TARGET_ESP32S3) && defined(CONFIG_SPIRAM) if(esp_psram_get_size() <= 0) { response.print("

"); + response.print("

"); } - #elif defined(CONFIG_IDF_TARGET_ESP32) && !defined(NUKI_TARGET_GL_S10) + #elif defined(CONFIG_IDF_TARGET_ESP32S3) + response.print("

"); + response.print("

"); + #elif defined(CONFIG_IDF_TARGET_ESP32) && defined(CONFIG_SPIRAM) && !defined(NUKI_TARGET_GL_S10) if(_preferences->getInt(preference_network_hardware) == 8) { response.print("

"); } + if(esp_psram_get_size() <= 0) + { + response.print("

"); + } + #elif defined(CONFIG_IDF_TARGET_ESP32) && !defined(CONFIG_SPIRAM) + if(_preferences->getInt(preference_network_hardware) == 8) + { + response.print("

"); + } + response.print("

"); #endif response.print("

");