@@ -69,13 +69,6 @@ bool DGUSScreenHandler::leveling_active = false;
69
69
millis_t DGUSScreenHandler::status_expire = 0 ;
70
70
millis_t DGUSScreenHandler::eeprom_save = 0 ;
71
71
72
- const char DGUS_MSG_HOMING_REQUIRED[] PROGMEM = " Homing required" ,
73
- DGUS_MSG_BUSY[] PROGMEM = " Busy" ,
74
- DGUS_MSG_UNDEF[] PROGMEM = " -" ,
75
- DGUS_MSG_HOMING[] PROGMEM = " Homing..." ,
76
- DGUS_MSG_FW_OUTDATED[] PROGMEM = " DWIN GUI/OS update required" ,
77
- DGUS_MSG_ABL_REQUIRED[] PROGMEM = " Auto bed leveling required" ;
78
-
79
72
const char DGUS_CMD_HOME[] PROGMEM = " G28" ,
80
73
DGUS_CMD_EEPROM_SAVE[] PROGMEM = " M500" ;
81
74
@@ -159,25 +152,25 @@ void DGUSScreenHandler::Loop() {
159
152
}
160
153
161
154
void DGUSScreenHandler::PrinterKilled (FSTR_P const error, FSTR_P const component) {
162
- SetMessageLinePGM ( FTOP ( error) , 1 );
163
- SetMessageLinePGM ( FTOP ( component) , 2 );
155
+ SetMessageLine ( error, 1 );
156
+ SetMessageLine ( component, 2 );
164
157
SetMessageLinePGM (NUL_STR, 3 );
165
- SetMessageLinePGM ( GET_TEXT (MSG_PLEASE_RESET), 4 );
158
+ SetMessageLine ( GET_TEXT_F (MSG_PLEASE_RESET), 4 );
166
159
167
160
dgus_display.PlaySound (3 , 1 , 200 );
168
161
169
162
MoveToScreen (DGUS_Screen::KILL, true );
170
163
}
171
164
172
165
void DGUSScreenHandler::UserConfirmRequired (const char * const msg) {
173
- dgus_screen_handler. SetMessageLinePGM (NUL_STR, 1 );
174
- dgus_screen_handler. SetMessageLine (msg, 2 );
175
- dgus_screen_handler. SetMessageLinePGM (NUL_STR, 3 );
176
- dgus_screen_handler. SetMessageLinePGM (NUL_STR, 4 );
166
+ SetMessageLinePGM (NUL_STR, 1 );
167
+ SetMessageLine (msg, 2 );
168
+ SetMessageLinePGM (NUL_STR, 3 );
169
+ SetMessageLinePGM (NUL_STR, 4 );
177
170
178
171
dgus_display.PlaySound (3 );
179
172
180
- dgus_screen_handler. ShowWaitScreen (current_screen, true );
173
+ ShowWaitScreen (current_screen, true );
181
174
}
182
175
183
176
void DGUSScreenHandler::SettingsReset () {
@@ -347,7 +340,7 @@ void DGUSScreenHandler::FilamentRunout(const ExtUI::extruder_t extruder) {
347
340
348
341
#endif // HAS_PID_HEATING
349
342
350
- void DGUSScreenHandler::SetMessageLine (const char * msg, uint8_t line) {
343
+ void DGUSScreenHandler::SetMessageLine (const char * const msg, const uint8_t line) {
351
344
switch (line) {
352
345
default : return ;
353
346
case 1 :
@@ -365,7 +358,7 @@ void DGUSScreenHandler::SetMessageLine(const char* msg, uint8_t line) {
365
358
}
366
359
}
367
360
368
- void DGUSScreenHandler::SetMessageLinePGM (PGM_P msg, uint8_t line) {
361
+ void DGUSScreenHandler::SetMessageLinePGM (PGM_P const msg, const uint8_t line) {
369
362
switch (line) {
370
363
default : return ;
371
364
case 1 :
0 commit comments