mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-03-14 05:36:34 +03:00
gpio exclusion, add name
This commit is contained in:
@@ -97,7 +97,7 @@ void WebLogService::show(Shell & shell) {
|
||||
}
|
||||
|
||||
shell.println();
|
||||
shell.printfln("Recent Log (level %s, max %d messages):", uuid::log::format_level_uppercase(level_), maximum_log_messages_);
|
||||
shell.printfln("Recent Log:");
|
||||
shell.println();
|
||||
|
||||
for (const auto & message : log_messages_) {
|
||||
|
||||
@@ -116,7 +116,8 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) {
|
||||
// see if the user has changed the board profile
|
||||
// this will set: led_gpio, dallas_gpio, rx_gpio, tx_gpio, pbutton_gpio, phy_type, eth_power, eth_phy_addr, eth_clock_mode, led_type
|
||||
// this will always run when EMS-ESP starts since original_settings{} is empty
|
||||
if (original_settings.board_profile != settings.board_profile) {
|
||||
if (original_settings.board_profile != settings.board_profile || original_settings.board_profile == "default"
|
||||
|| original_settings.board_profile.length() == 0) {
|
||||
set_board_profile(settings);
|
||||
add_flags(ChangeFlags::RESTART);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user