allocated PSRAM size calculation fix

This commit is contained in:
folkert van heusden 2024-04-30 20:26:21 +02:00
parent 848ea62025
commit 8e081ac852
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -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));
}