diff --git a/firmware/application/ui_debug.cpp b/firmware/application/ui_debug.cpp index 1e005d7f..fda852bc 100644 --- a/firmware/application/ui_debug.cpp +++ b/firmware/application/ui_debug.cpp @@ -269,7 +269,7 @@ DebugPeripheralsMenuView::DebugPeripheralsMenuView(NavigationView& nav) { /* DebugMenuView *********************************************************/ DebugMenuView::DebugMenuView(NavigationView& nav) { - add_items<8>({ { + add_items<5>({ { { "Memory", [&nav](){ nav.push(); } }, { "Radio State", [&nav](){ nav.push(); } }, { "SD Card", [&nav](){ nav.push(); } }, diff --git a/firmware/application/ui_menu.hpp b/firmware/application/ui_menu.hpp index e5533ce1..0bd19c11 100644 --- a/firmware/application/ui_menu.hpp +++ b/firmware/application/ui_menu.hpp @@ -35,6 +35,10 @@ namespace ui { struct MenuItem { std::string text; std::function on_select; + + // TODO: Prevent default-constructed MenuItems. + // I managed to construct a menu with three extra, unspecified menu items + // in the array that were default constructed... }; class MenuItemView : public Widget {