forked from Mirrors/Marlin
@@ -122,20 +122,18 @@ void CustomUserMenus::onRedraw(draw_mode_t what) {
|
||||
}
|
||||
}
|
||||
|
||||
#include "../../../../gcode/queue.h"
|
||||
|
||||
template<bool> void _lcd_custom_menu_gcode(FSTR_P const fstr);
|
||||
|
||||
FORCE_INLINE void _lcd_custom_menu_gcode_done() {
|
||||
TERN_(CUSTOM_MENU_MAIN_SCRIPT_AUDIBLE_FEEDBACK, ui.completion_feedback());
|
||||
TERN_(CUSTOM_MENU_MAIN_SCRIPT_RETURN, ui.return_to_status());
|
||||
sound.play(chimes, PLAY_ASYNCHRONOUS);
|
||||
GOTO_SCREEN(StatusScreen);
|
||||
}
|
||||
template<> void _lcd_custom_menu_gcode<true>(FSTR_P const fstr) {
|
||||
gcode.process_subcommands_now(fstr);
|
||||
ExtUI::executeCommands(fstr);
|
||||
_lcd_custom_menu_gcode_done();
|
||||
}
|
||||
template<> void _lcd_custom_menu_gcode<false>(FSTR_P const fstr) {
|
||||
queue.inject(fstr);
|
||||
ExtUI::injectCommands(fstr);
|
||||
_lcd_custom_menu_gcode_done();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user