fix(color): Incorrect Lua memory usage values (#3548)

This commit is contained in:
philmoz
2023-05-07 11:24:58 +10:00
committed by GitHub
parent cea26d1247
commit 93d8992fed
+2 -2
View File
@@ -300,11 +300,11 @@ void DebugViewPage::build(FormWindow* window)
// lUA memory data
new DebugInfoNumber<uint32_t>(
line, rect_t{0, 0, DBG_B_WIDTH, DBG_B_HEIGHT},
[] { return 10 * luaGetMemUsed(lsScripts); }, COLOR_THEME_PRIMARY1,
[] { return luaGetMemUsed(lsScripts); }, COLOR_THEME_PRIMARY1,
STR_MEM_USED_SCRIPT, nullptr);
new DebugInfoNumber<uint32_t>(
line, rect_t{0, 0, DBG_B_WIDTH, DBG_B_HEIGHT},
[] { return 10 * luaGetMemUsed(lsWidgets); }, COLOR_THEME_PRIMARY1,
[] { return luaGetMemUsed(lsWidgets); }, COLOR_THEME_PRIMARY1,
STR_MEM_USED_WIDGET, nullptr);
#if LCD_H > LCD_W