Skip to content

Commit

Permalink
2 MB ram default
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed May 5, 2024
1 parent 6b7e45e commit 4c316e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ESP32/main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void setup() {

if (psramInit()) {
uint32_t free_psram = ESP.getFreePsram();
n_pages = min(free_psram / 8192, uint32_t(128)); // start size is 1 MB max.
n_pages = min(free_psram / 8192, uint32_t(256)); // start size is 2 MB max (with 1 MB, UNIX 7 behaves strangely)
Serial.printf("Free PSRAM: %d decimal bytes (or %d pages (see 'ramsize' in the debugger))", free_psram, n_pages);
Serial.println(F(""));
}
Expand Down

0 comments on commit 4c316e8

Please sign in to comment.