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:
parent
1745fa72db
commit
4bc7c2632a
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user