Skip to content

Commit 7fe4b99

Browse files
committed
fix bug when CUSTOM is chosen as board profile
1 parent 0c8dd1d commit 7fe4b99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/WebSettingsService.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ StateUpdateResult WebSettings::update(JsonObject & root, WebSettings & settings)
6969
std::vector<uint8_t> data; // led, dallas, rx, tx, button
7070
if (!System::load_board_profile(data, settings.board_profile.c_str())) {
7171
// invalid board configuration, override the default in case it has been misspelled
72-
settings.board_profile = "S32";
72+
if (!settings.board_profile.equals("CUSTOM")) {
73+
settings.board_profile = "S32";
74+
}
7375
}
7476
uint8_t default_led_gpio = data[0];
7577
uint8_t default_dallas_gpio = data[1];

0 commit comments

Comments
 (0)