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

@@ -502,6 +502,7 @@ void show_psram_info_part2(void)
}
#endif
#if 0 // this test makes the "max used PSRAM" info unusable
// try to allocate PSRAM (one 640KB chunk so we can be sure it will not fit into DRAM)
void * buff2 = ps_malloc(640 * 1024);
uint8_t * buf = (uint8_t*)malloc(620 * 1024);
@@ -518,6 +519,7 @@ void show_psram_info_part2(void)
free(buf);
Serial.println("* Can allocate big memory with malloc()");
}
#endif
#endif
}