From 0880507d89c18e0c3547b0ba981c7658ccfe9406 Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Tue, 9 Mar 2021 10:38:48 +0000 Subject: [PATCH] Make memory monitoring non-optional. --- CommandStation-EX.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CommandStation-EX.ino b/CommandStation-EX.ino index 2357638..14b0057 100644 --- a/CommandStation-EX.ino +++ b/CommandStation-EX.ino @@ -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 }