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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user