From 5cb9f3b014d08c8662c391050d991985d7f6ead7 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 29 Nov 2025 14:48:57 +0100 Subject: [PATCH] init board profile correctly --- src/web/WebSettingsService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/WebSettingsService.cpp b/src/web/WebSettingsService.cpp index 32a5a1af3..ea35e128d 100644 --- a/src/web/WebSettingsService.cpp +++ b/src/web/WebSettingsService.cpp @@ -422,7 +422,7 @@ void WebSettings::set_board_profile(WebSettings & settings) { // load the board profile into the data vector // 0=led, 1=dallas, 2=rx, 3=tx, 4=button, 5=phy_type, 6=eth_power, 7=eth_phy_addr, 8=eth_clock_mode, 9=led_type - std::vector data(99, 0); // initialize with 99 for all values, just as a safe guard to catch bad gpios + std::vector data(10, 99); // initialize with 99 for all values, just as a safe guard to catch bad gpios if (settings.board_profile != "default") { if (!System::load_board_profile(data, settings.board_profile.c_str())) { #if defined(EMSESP_DEBUG)