only use psram when available
This commit is contained in:
parent
f22af40572
commit
8106dc4683
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ memory::memory(const uint32_t size): size(size)
|
||||||
Serial.print(F("Memory size (in bytes, decimal): "));
|
Serial.print(F("Memory size (in bytes, decimal): "));
|
||||||
Serial.println(size);
|
Serial.println(size);
|
||||||
|
|
||||||
if (size > 12 * 8192) {
|
if (size > 12 * 8192 && psramFound()) {
|
||||||
Serial.println(F("Using PSRAM"));
|
Serial.println(F("Using PSRAM"));
|
||||||
is_psram = true;
|
is_psram = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue