mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-24 16:46:13 +01:00
using a bunch of memory?
This commit is contained in:
parent
f88c617dbe
commit
1745fa72db
|
@ -295,10 +295,13 @@ int DCCTimer::getMinimumFreeMemory() {
|
||||||
interrupts();
|
interrupts();
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
extern "C" char* sbrk(int incr);
|
||||||
|
|
||||||
int DCCTimer::freeMemory() {
|
int DCCTimer::freeMemory() {
|
||||||
|
|
||||||
char top;
|
char top;
|
||||||
return (int)(1024000);
|
|
||||||
|
return (int)(&top - reinterpret_cast<char*>(sbrk(0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void DCCTimer::reset() {
|
void DCCTimer::reset() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user