Extensible user interface API (#11193)
This commit is contained in:
committed by
Scott Lahteine
parent
ee253991d4
commit
906a24fa81
@ -152,6 +152,10 @@
|
||||
#include "feature/controllerfan.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "lcd/extensible_ui/ui_api.h"
|
||||
#endif
|
||||
|
||||
bool Running = true;
|
||||
|
||||
/**
|
||||
@ -609,7 +613,9 @@ void kill(PGM_P lcd_msg) {
|
||||
thermalManager.disable_all_heaters();
|
||||
disable_all_steppers();
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
UI::onPrinterKilled(lcd_msg);
|
||||
#elif ENABLED(ULTRA_LCD)
|
||||
kill_screen(lcd_msg);
|
||||
#else
|
||||
UNUSED(lcd_msg);
|
||||
@ -958,7 +964,7 @@ void loop() {
|
||||
card.checkautostart();
|
||||
#endif
|
||||
|
||||
#if ENABLED(SDSUPPORT) && ENABLED(ULTIPANEL)
|
||||
#if ENABLED(SDSUPPORT) && (ENABLED(ULTIPANEL) || ENABLED(EXTENSIBLE_UI))
|
||||
if (abort_sd_printing) {
|
||||
abort_sd_printing = false;
|
||||
card.stopSDPrint(
|
||||
@ -978,7 +984,7 @@ void loop() {
|
||||
card.removeJobRecoveryFile();
|
||||
#endif
|
||||
}
|
||||
#endif // SDSUPPORT && ULTIPANEL
|
||||
#endif // SDSUPPORT && (ENABLED(ULTIPANEL) || ENABLED(EXTENSIBLE_UI))
|
||||
|
||||
if (commands_in_queue < BUFSIZE) get_available_commands();
|
||||
advance_command_queue();
|
||||
|
Reference in New Issue
Block a user