small changes to info page

- added "max used PSRAM" info
- moved all mem infos into one part
- only check PSRAM if BOARD_HAS_PSRAM
- oappend: debug message in case that stack buffer is too small.
This commit is contained in:
Frank
2022-10-17 15:40:56 +02:00
parent cb45f293dd
commit 72851b5725
5 changed files with 34 additions and 9 deletions

View File

@@ -148,8 +148,10 @@ bool oappendi(int i)
bool oappend(const char* txt)
{
uint16_t len = strlen(txt);
if (olen + len >= SETTINGS_STACK_BUF_SIZE)
if (olen + len >= SETTINGS_STACK_BUF_SIZE) {
DEBUG_PRINTLN(F("oappend() error: buffer full. Increase SETTINGS_STACK_BUF_SIZE."));
return false; // buffer full
}
strcpy(obuf + olen, txt);
olen += len;
return true;