1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

Make memory monitoring non-optional.

This commit is contained in:
Neil McKechnie 2021-03-09 10:38:48 +00:00
parent 62f1c04ee3
commit 0880507d89

View File

@ -123,8 +123,7 @@ void loop()
LCDDisplay::loop(); // ignored if LCD not in use
// Optionally report any decrease in memory (will automatically trigger on first call)
#if ENABLE_FREE_MEM_WARNING
// Report any decrease in memory (will automatically trigger on first call)
static int ramLowWatermark = 32767; // replaced on first loop
int freeNow = updateMinimumFreeMemory();
@ -133,5 +132,4 @@ void loop()
ramLowWatermark = freeNow;
LCD(2,F("Free RAM=%5db"), ramLowWatermark);
}
#endif
}