Fix compiler error when Debug_Timers is enabled

Lug BG/FG is never used. Only LUA. Removed extra

+ Change my oopsie (model_select.cpp) compiler warning that didn't show up until I started using docker
This commit is contained in:
dlktdr
2021-11-22 13:52:36 +10:00
committed by Peter Feerick
parent 22112de372
commit 7005946808
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -244,9 +244,8 @@ const char * const debugTimerNames[DEBUG_TIMERS_COUNT] = {
,"perMain dur" // debugTimerPerMain, ,"perMain dur" // debugTimerPerMain,
," perMain s1" // debugTimerPerMain1, ," perMain s1" // debugTimerPerMain1,
," guiMain " // debugTimerGuiMain, ," guiMain " // debugTimerGuiMain,
," LUA bg " // debugTimerLuaBg, ," LUA " // debugTimerLua,
," LCD wait " // debugTimerLcdRefreshWait, ," LCD wait " // debugTimerLcdRefreshWait,
," LUA fg " // debugTimerLuaFg,
," LCD refr." // debugTimerLcdRefresh, ," LCD refr." // debugTimerLcdRefresh,
," Menus " // debugTimerMenus, ," Menus " // debugTimerMenus,
," Menu hnd" // debugTimerMenuHandlers, ," Menu hnd" // debugTimerMenuHandlers,
+1 -1
View File
@@ -431,7 +431,7 @@ class CategoryEditPage : public PageTab
// Details // Details
char cnt[19]; char cnt[19];
snprintf(cnt, sizeof(cnt), "%d %s", category->size(), STR_MODELS); snprintf(cnt, sizeof(cnt), "%lu %s", category->size(), STR_MODELS);
new StaticText(window, grid.getFieldSlot(3,1), cnt); new StaticText(window, grid.getFieldSlot(3,1), cnt);
if(category->empty()) { if(category->empty()) {