Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions src/src/ESPEasyCore/ESPEasy_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,7 @@ void ESPEasy_setup()
log += getSystemLibraryString();
log += ')';
addLogMove(LOG_LEVEL_INFO, log);
log = F("INIT : Free RAM:");
log += FreeMem();
addLogMove(LOG_LEVEL_INFO, log);
addLog(LOG_LEVEL_INFO, concat(F("INIT : Free RAM: "), FreeMem()));
}

readBootCause();
Expand Down Expand Up @@ -489,7 +487,20 @@ void ESPEasy_setup()
#endif // ifndef BUILD_NO_RAM_TRACKER
#ifndef BUILD_NO_DEBUG
if (loglevelActiveFor(LOG_LEVEL_INFO)) {
addLogMove(LOG_LEVEL_INFO, concat(F("INIT : Free RAM:"), FreeMem()));
addLog(LOG_LEVEL_INFO, concat(F("INIT : Free RAM: "), FreeMem()));

#ifndef LIMIT_BUILD_SIZE
const uint32_t realSize = getFlashRealSizeInBytes();
const uint32_t usedSize = ESP.getFlashChipSize();
String log = strformat(F("INIT : Flash size: %uMB, Flash used: %uMB"), realSize >> 20, usedSize >> 20);
#ifdef ESP32
if ((usedSize < realSize) && (realSize >= (8 << 20))) { // >= 8MB ?
log += F(", a MAX build can be installed!");
}
#endif // ifdef ESP32
addLogMove(LOG_LEVEL_INFO, log);
#endif // ifndef LIMIT_BUILD_SIZE

}
#endif
#ifndef BUILD_NO_DEBUG
Expand Down