mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-26 16:49:11 +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
|
boardProfileItems
|
||||||
)}
|
)}
|
||||||
<Divider />
|
{(data.board_profile === 'CUSTOM' || data.developer_mode) && <Divider />}
|
||||||
{(data.board_profile === 'CUSTOM' || data.developer_mode) && (
|
{(data.board_profile === 'CUSTOM' || data.developer_mode) && (
|
||||||
<MenuItem key={'CUSTOM'} value={'CUSTOM'}>
|
<MenuItem key={'CUSTOM'} value={'CUSTOM'}>
|
||||||
{LL.CUSTOM()}…
|
{LL.CUSTOM()}…
|
||||||
|
|||||||
@@ -436,6 +436,7 @@ void WebSettings::set_board_profile(WebSettings & settings) {
|
|||||||
// as it's already set
|
// as it's already set
|
||||||
if (settings.board_profile == "CUSTOM") {
|
if (settings.board_profile == "CUSTOM") {
|
||||||
EMSESP::logger().info("Using CUSTOM board profile");
|
EMSESP::logger().info("Using CUSTOM board profile");
|
||||||
|
EMSESP::system_.set_valid_system_gpios();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user