SWR now only available in debug screens (not a telemetry sensor)

This commit is contained in:
Bertrand Songis
2016-05-31 20:23:09 +02:00
parent 61420db3ff
commit 52e59fc85b
5 changed files with 28 additions and 16 deletions
+6 -3
View File
@@ -28,8 +28,7 @@
bool menuStatsGraph(evt_t event)
{
switch(event)
{
switch(event) {
case EVT_KEY_LONG(KEY_ENTER):
g_eeGeneral.globalTimer = 0;
storageDirty(EE_GENERAL);
@@ -128,7 +127,7 @@ bool menuStatsDebug(evt_t event)
int line = 3;
#if defined(DISK_CACHE)
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP+line*FH, "SD Cache hits");
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP+line*FH, "SD cache hits");
lcdDrawNumber(MENU_STATS_COLUMN1, MENU_CONTENT_TOP+line*FH, diskCache.getHitRate(), PREC1|LEFT, 0, NULL, "%");
++line;
#endif
@@ -166,6 +165,10 @@ bool menuStatsAnalogs(evt_t event)
#endif
}
// SWR
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP+6*FH, "RAS");
lcdDrawNumber(MENUS_MARGIN_LEFT+100, MENU_CONTENT_TOP+6*FH, telemetryData.swr.value);
return true;
}