feat(color): Better debug names on statistics page (#3245)

* better_debug_name_on_statistics_page

* chore: Translations for Lua related strings

* chore: More translation strings for stats screen

* chore: Padding for STR_MS, STR_BYTES

---------
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
Offer Shmuely
2023-03-30 12:12:45 +10:00
committed by GitHub
co-authored by Peter Feerick
parent 97d812a7df
commit 1f82724a95
20 changed files with 258 additions and 42 deletions
+8 -8
View File
@@ -165,24 +165,24 @@ void menuStatisticsDebug(event_t event)
uint8_t y = FH + 1;
#if defined(STM32)
lcdDrawTextAlignedLeft(y, "Free Mem");
lcdDrawTextAlignedLeft(y, STR_FREE_MEM_LABEL);
lcdDrawNumber(MENU_DEBUG_COL1_OFS, y, availableMemory(), LEFT);
lcdDrawText(lcdLastRightPos, y, "b");
lcdDrawText(lcdLastRightPos+FW, y, STR_BYTES);
y += FH;
#endif
#if defined(LUA)
lcdDrawTextAlignedLeft(y, "Lua scripts");
lcdDrawText(MENU_DEBUG_COL1_OFS, y+1, "[Duration]", SMLSIZE);
lcdDrawTextAlignedLeft(y, STR_LUA_SCRIPTS_LABEL);
lcdDrawText(MENU_DEBUG_COL1_OFS, y+1, STR_DURATION_MS, SMLSIZE);
lcdDrawNumber(lcdLastRightPos, y, 10*maxLuaDuration, LEFT);
lcdDrawText(lcdLastRightPos+2, y+1, "[Interval]", SMLSIZE);
lcdDrawText(lcdLastRightPos+2, y+1, STR_INTERVAL_MS, SMLSIZE);
lcdDrawNumber(lcdLastRightPos, y, 10*maxLuaInterval, LEFT);
y += FH;
#endif
lcdDrawTextAlignedLeft(y, STR_TMIXMAXMS);
lcdDrawNumber(MENU_DEBUG_COL1_OFS, y, DURATION_MS_PREC2(maxMixerDuration), PREC2|LEFT);
lcdDrawText(lcdLastRightPos, y, "ms");
lcdDrawText(lcdLastRightPos, y, STR_MS);
y += FH;
lcdDrawTextAlignedLeft(y, STR_FREE_STACK);
@@ -197,7 +197,7 @@ void menuStatisticsDebug(event_t event)
y += FH;
#if defined(DEBUG_LATENCY)
lcdDrawTextAlignedLeft(y, "Heartbeat");
lcdDrawTextAlignedLeft(y, STR_HEARTBEAT_LABEL);
if (heartbeatCapture.valid)
lcdDrawNumber(MENU_DEBUG_COL1_OFS, y, heartbeatCapture.count, LEFT);
else
@@ -278,7 +278,7 @@ void menuTraceBuffer(event_t event)
int8_t sub = menuVerticalPosition;
lcdDrawChar(0, FH, '#');
lcdDrawText(4*FW, FH, "Time");
lcdDrawText(4*FW, FH, TR_TIME);
lcdDrawText(14*FW, FH, "Event");
lcdDrawText(20*FW, FH, "Data");