mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
fix bug when CUSTOM is chosen as board profile
This commit is contained in:
@@ -69,7 +69,9 @@ StateUpdateResult WebSettings::update(JsonObject & root, WebSettings & settings)
|
|||||||
std::vector<uint8_t> data; // led, dallas, rx, tx, button
|
std::vector<uint8_t> data; // led, dallas, rx, tx, button
|
||||||
if (!System::load_board_profile(data, settings.board_profile.c_str())) {
|
if (!System::load_board_profile(data, settings.board_profile.c_str())) {
|
||||||
// invalid board configuration, override the default in case it has been misspelled
|
// invalid board configuration, override the default in case it has been misspelled
|
||||||
settings.board_profile = "S32";
|
if (!settings.board_profile.equals("CUSTOM")) {
|
||||||
|
settings.board_profile = "S32";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
uint8_t default_led_gpio = data[0];
|
uint8_t default_led_gpio = data[0];
|
||||||
uint8_t default_dallas_gpio = data[1];
|
uint8_t default_dallas_gpio = data[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user