MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / LoadFixedMenu

Method LoadFixedMenu

src/Display/Menu.cpp:115–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void Menu::LoadFixedMenu() noexcept
116{
117 displayingFixedMenu = true;
118 numNestedMenus = 0;
119 commandBufferIndex = 0;
120 rowOffset = currentMargin = 0;
121 lcd.ClearAll();
122
123 // Instead of Reload():
124 lcd.SetRightMargin(lcd.GetNumCols());
125
126 ResetCache();
127
128#if HAS_MASS_STORAGE
129 char acLine1[] = "text R3 C5 F0 T\"No SD Card Found\"";
130 char acLine2[] = "button R15 C5 F0 T\"Mount SD\" A\"M21\"";
131
132 (void)ParseMenuLine(acLine1);
133 (void)ParseMenuLine(acLine2);
134#endif
135}
136
137// Display a M291 message box
138void Menu::DisplayMessageBox(const MessageBox& mbox) noexcept

Callers

nothing calls this directly

Calls 1

SetRightMarginMethod · 0.80

Tested by

no test coverage detected