From 5ab066de5fa38dfe0c6aecf54b2aa13415f53bce Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 5 Nov 2022 18:26:48 +0100 Subject: [PATCH 1/2] bump b9 --- src/version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version.h b/src/version.h index e943da6ae..6da6a8cb1 100644 --- a/src/version.h +++ b/src/version.h @@ -1,4 +1,4 @@ -#define EMSESP_APP_VERSION "3.5.0b8" +#define EMSESP_APP_VERSION "3.5.0b9" #if CONFIG_IDF_TARGET_ESP32C3 #define EMSESP_PLATFORM "ESP32-C3"; From c757ace2b4c04a80e811f566f43b4d54ab9ee904 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 5 Nov 2022 18:26:59 +0100 Subject: [PATCH 2/2] fix standalone compiling & sonar --- src/web/WebSettingsService.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/web/WebSettingsService.cpp b/src/web/WebSettingsService.cpp index 4a4210f01..6c0a99dbe 100644 --- a/src/web/WebSettingsService.cpp +++ b/src/web/WebSettingsService.cpp @@ -90,15 +90,17 @@ StateUpdateResult WebSettings::update(JsonObject & root, WebSettings & settings) settings.board_profile = root["board_profile"] | EMSESP_DEFAULT_BOARD_PROFILE; #endif if (!System::load_board_profile(data, settings.board_profile.c_str())) { +#ifndef EMSESP_STANDALONE // unknown, check for ethernet, use default E32/S32 if (ETH.begin(1, 16, 23, 18, ETH_PHY_LAN8720)) { - data = {2, 4, 5, 17, 33, PHY_type::PHY_TYPE_LAN8720, 16, 1, 0}; // BBQKees Gateway E32 + data = {2, 4, 5, 17, 33, PHY_type::PHY_TYPE_LAN8720, 16, 1, 0}; // BBQKees Gateway E32 settings.board_profile = "E32"; } else { - data = {2, 18, 23, 5, 0, PHY_type::PHY_TYPE_NONE, 0, 0, 0}; // BBQKees Gateway S32 + data = {2, 18, 23, 5, 0, PHY_type::PHY_TYPE_NONE, 0, 0, 0}; // BBQKees Gateway S32 settings.board_profile = "S32"; } EMSESP::logger().info("No board profile found. Re-setting to %s", settings.board_profile.c_str()); +#endif } else { EMSESP::logger().info("Loading board profile %s", settings.board_profile.c_str()); }