mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-26 08:39:09 +03:00
Merge pull request #2921 from MichaelDvP/dev
set gpios when switching to custom board
This commit is contained in:
@@ -502,7 +502,7 @@ const ApplicationSettings = () => {
|
||||
) : (
|
||||
boardProfileItems
|
||||
)}
|
||||
<Divider />
|
||||
{(data.board_profile === 'CUSTOM' || data.developer_mode) && <Divider />}
|
||||
{(data.board_profile === 'CUSTOM' || data.developer_mode) && (
|
||||
<MenuItem key={'CUSTOM'} value={'CUSTOM'}>
|
||||
{LL.CUSTOM()}…
|
||||
|
||||
@@ -436,6 +436,7 @@ void WebSettings::set_board_profile(WebSettings & settings) {
|
||||
// as it's already set
|
||||
if (settings.board_profile == "CUSTOM") {
|
||||
EMSESP::logger().info("Using CUSTOM board profile");
|
||||
EMSESP::system_.set_valid_system_gpios();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user