1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-24 08:36:14 +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() {
char top;
return (int)(&top - reinterpret_cast<char*>(sbrk(0)));
unsigned int tmp = (unsigned int)(&top - reinterpret_cast<char*>(sbrk(0)));
return (int)(tmp / 1000);
}
void DCCTimer::reset() {