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
+7 -7
View File
@@ -188,23 +188,23 @@ void menuStatisticsDebug(event_t event)
#endif
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;
#if defined(LUA)
lcdDrawTextAlignedLeft(y, "Lua scripts");
lcdDrawText(MENU_DEBUG_COL1_OFS, y+1, "[D]", SMLSIZE);
lcdDrawTextAlignedLeft(y, TR_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, "[I]", 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);
@@ -216,7 +216,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