1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-24 16:46:13 +01:00

fixed freeMemory, though now reads in Kb for giga

This commit is contained in:
travis-farmer 2023-10-22 08:16:34 -04:00
parent 1745fa72db
commit 4bc7c2632a

View File

@ -300,8 +300,8 @@ extern "C" char* sbrk(int incr);
int DCCTimer::freeMemory() { int DCCTimer::freeMemory() {
char top; char top;
unsigned int tmp = (unsigned int)(&top - reinterpret_cast<char*>(sbrk(0)));
return (int)(&top - reinterpret_cast<char*>(sbrk(0))); return (int)(tmp / 1000);
} }
void DCCTimer::reset() { void DCCTimer::reset() {