Multi-language support (#15453)
This commit is contained in:
committed by
Scott Lahteine
parent
dc14d4a13c
commit
6a865a6146
@@ -939,6 +939,12 @@ namespace ExtUI {
|
||||
ui.abort_print();
|
||||
}
|
||||
|
||||
void onUserConfirmRequired_P(PGM_P const pstr) {
|
||||
char msg[strlen_P(pstr) + 1];
|
||||
strcpy_P(msg, pstr);
|
||||
onUserConfirmRequired(msg);
|
||||
}
|
||||
|
||||
FileList::FileList() { refresh(); }
|
||||
|
||||
void FileList::refresh() { num_files = 0xFFFF; }
|
||||
@@ -1036,11 +1042,11 @@ void MarlinUI::update() {
|
||||
ExtUI::onIdle();
|
||||
}
|
||||
|
||||
void MarlinUI::kill_screen(PGM_P const msg) {
|
||||
void MarlinUI::kill_screen(PGM_P const error, PGM_P const component) {
|
||||
using namespace ExtUI;
|
||||
if (!flags.printer_killed) {
|
||||
flags.printer_killed = true;
|
||||
onPrinterKilled(msg);
|
||||
onPrinterKilled(error, component);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user