From f7daadc92141ba2fa38b466f5ddf7bfa629c8235 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Mon, 15 Jul 2019 18:02:01 +0200 Subject: [PATCH] More infos in statistics moved to DEBUG mode --- radio/src/gui/480x272/view_statistics.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/radio/src/gui/480x272/view_statistics.cpp b/radio/src/gui/480x272/view_statistics.cpp index cd6c4fd13..5d29b07bb 100644 --- a/radio/src/gui/480x272/view_statistics.cpp +++ b/radio/src/gui/480x272/view_statistics.cpp @@ -160,7 +160,7 @@ bool menuStatsDebug(event_t event) y += FH; #endif -#if defined(DISK_CACHE) +#if defined(DISK_CACHE) && defined(DEBUG) lcdDrawText(MENUS_MARGIN_LEFT, y, "SD cache hits"); lcdDrawNumber(MENU_STATS_COLUMN1, y, diskCache.getHitRate(), PREC1|LEFT, 0, NULL, "%"); y += FH; @@ -175,8 +175,7 @@ bool menuStatsDebug(event_t event) y += FH; #endif -#if 0 - // TODO in a debug mode? +#if defined(DEBUG) lcdDrawText(MENUS_MARGIN_LEFT, y, "Telem RX Errs"); lcdDrawNumber(MENU_STATS_COLUMN1, y, telemetryErrors, LEFT); y += FH;