From 8106dc4683987e2054a48dd0b351b2b00b08da62 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sat, 27 Apr 2024 21:46:01 +0200 Subject: [PATCH] only use psram when available --- memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory.cpp b/memory.cpp index c4fafc4..64fa1ba 100644 --- a/memory.cpp +++ b/memory.cpp @@ -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;