only use psram when available

This commit is contained in:
folkert van heusden 2024-04-27 21:46:01 +02:00
parent f22af40572
commit 8106dc4683
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -14,7 +14,7 @@ memory::memory(const uint32_t size): size(size)
Serial.print(F("Memory size (in bytes, decimal): "));
Serial.println(size);
if (size > 12 * 8192) {
if (size > 12 * 8192 && psramFound()) {
Serial.println(F("Using PSRAM"));
is_psram = true;