mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
show in log if we're autodetecting board
This commit is contained in:
@@ -416,6 +416,7 @@ void WebSettings::set_board_profile(WebSettings & settings) {
|
|||||||
// if it's CUSTOM no need to load the board profile from the settings
|
// if it's CUSTOM no need to load the board profile from the 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");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -433,9 +434,7 @@ void WebSettings::set_board_profile(WebSettings & settings) {
|
|||||||
|
|
||||||
// we still don't have a valid board profile. Let's see if we can determine one from the build config or hardware
|
// we still don't have a valid board profile. Let's see if we can determine one from the build config or hardware
|
||||||
if (settings.board_profile == "default") {
|
if (settings.board_profile == "default") {
|
||||||
#if defined(EMSESP_DEBUG)
|
EMSESP::logger().info("Autodetecting board profile");
|
||||||
EMSESP::logger().debug("Autodetecting board profile");
|
|
||||||
#endif
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
// check for no PSRAM, could be a E32 or S32?
|
// check for no PSRAM, could be a E32 or S32?
|
||||||
if (!ESP.getPsramSize()) {
|
if (!ESP.getPsramSize()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user