Skip to content

Commit

Permalink
allocated PSRAM size calculation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Apr 30, 2024
1 parent 848ea62 commit 8e081ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ void debugger(console *const cnsl, bus *const b, std::atomic_uint32_t *const sto
if (parts.size() == 2)
b->set_memory_size(std::stoi(parts.at(1)));
else {
int n_pages = b->getRAM()->get_memory_size();
int n_pages = b->getRAM()->get_memory_size() / 8192;

cnsl->put_string_lf(format("Memory size: %u pages or %u kB (decimal)", n_pages, n_pages * 8192 / 1024));
}
Expand Down

0 comments on commit 8e081ac

Please sign in to comment.