@@ -88,7 +88,7 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
88
88
89
89
// For E_TOTAL there may be some characters to cover up
90
90
if (BOTH (DWIN_MARLINUI_PORTRAIT, LCD_SHOW_E_TOTAL) && axis == X_AXIS)
91
- dwin_string.add (" " );
91
+ dwin_string.add (F ( " " ) );
92
92
93
93
DWIN_Draw_String (true , font14x28, Color_White, Color_Bg_Black, x, y + 32 , S (dwin_string.string ()));
94
94
@@ -117,7 +117,7 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
117
117
118
118
// For E_TOTAL there may be some characters to cover up
119
119
if (ENABLED (LCD_SHOW_E_TOTAL) && (!ui.did_first_redraw || ui.old_is_printing != print_job_timer.isRunning ()) && axis == X_AXIS)
120
- dwin_string.add (" " );
120
+ dwin_string.add (F ( " " ) );
121
121
122
122
DWIN_Draw_String (true , font14x28, Color_White, Color_Bg_Black, x + 32 , y + 4 , S (dwin_string.string ()));
123
123
@@ -133,7 +133,7 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
133
133
134
134
if (!ui.did_first_redraw ) {
135
135
// Extra spaces to erase previous value
136
- dwin_string.set (" E " );
136
+ dwin_string.set (F ( " E " ) );
137
137
DWIN_Draw_String (true , font16x32, Color_IconBlue, Color_Bg_Black, x + (4 * 14 / 2 ) - 7 , y + 2 , S (dwin_string.string ()));
138
138
}
139
139
@@ -146,7 +146,7 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
146
146
#else // !DWIN_MARLINUI_PORTRAIT
147
147
148
148
if (!ui.did_first_redraw || ui.old_is_printing != print_job_timer.isRunning ()) {
149
- dwin_string.set (" E " );
149
+ dwin_string.set (F ( " E " ) );
150
150
DWIN_Draw_String (true , font16x32, Color_IconBlue, Color_Bg_Black, x, y, S (dwin_string.string ()));
151
151
}
152
152
@@ -176,7 +176,7 @@ FORCE_INLINE void _draw_fan_status(const uint16_t x, const uint16_t y) {
176
176
else {
177
177
DWIN_ICON_AnimationControl (0x0000 ); // disable all icon animations (this is the only one)
178
178
DWIN_ICON_Show (ICON, ICON_Fan0, x + fanx, y);
179
- dwin_string.set (PSTR (" " ));
179
+ dwin_string.set (F (" " ));
180
180
DWIN_Draw_String (true , font14x28, Color_White, Color_Bg_Black, x, y + STATUS_FAN_HEIGHT, S (dwin_string.string ()));
181
181
}
182
182
}
@@ -289,7 +289,7 @@ FORCE_INLINE void _draw_feedrate_status(const char *value, uint16_t x, uint16_t
289
289
}
290
290
291
291
dwin_string.set (value);
292
- dwin_string.add (PSTR ( " % " ) );
292
+ dwin_string.add (' % ' );
293
293
DWIN_Draw_String (true , font14x28, Color_White, Color_Bg_Black, x + 14 , y, S (dwin_string.string ()));
294
294
}
295
295
@@ -396,7 +396,7 @@ void MarlinUI::draw_status_screen() {
396
396
// landscape mode shows both elapsed and remaining (if SHOW_REMAINING_TIME)
397
397
time = print_job_timer.duration ();
398
398
time .toDigital (buffer);
399
- dwin_string.set (" " );
399
+ dwin_string.set (' ' );
400
400
dwin_string.add (buffer);
401
401
DWIN_Draw_String (true , font14x28, Color_White, Color_Bg_Black, 230 , 170 , S (dwin_string.string ()));
402
402
@@ -405,15 +405,15 @@ void MarlinUI::draw_status_screen() {
405
405
time = get_remaining_time ();
406
406
DWIN_Draw_String (true , font14x28, Color_IconBlue, Color_Bg_Black, 336 , 170 , S (" R " ));
407
407
if (print_job_timer.isPaused () && blink)
408
- dwin_string.set (" " );
408
+ dwin_string.set (F ( " " ) );
409
409
else {
410
410
time .toDigital (buffer);
411
411
dwin_string.set (buffer);
412
412
}
413
413
DWIN_Draw_String (true , font14x28, Color_White, Color_Bg_Black, 378 , 170 , S (dwin_string.string ()));
414
414
}
415
415
else if (!ui.did_first_redraw || ui.old_is_printing != print_job_timer.isRunning ()) {
416
- dwin_string.set (" " );
416
+ dwin_string.set (F ( " " ) );
417
417
DWIN_Draw_String (true , font14x28, Color_IconBlue, Color_Bg_Black, 336 , 170 , S (dwin_string.string ()));
418
418
}
419
419
#endif
@@ -449,7 +449,7 @@ void MarlinUI::draw_status_screen() {
449
449
450
450
#if ENABLED(SHOW_SD_PERCENT)
451
451
dwin_string.set (TERN (PRINT_PROGRESS_SHOW_DECIMALS, permyriadtostr4 (progress), ui8tostr3rj (progress / (PROGRESS_SCALE))));
452
- dwin_string.add (PSTR ( " % " ) );
452
+ dwin_string.add (' % ' );
453
453
DWIN_Draw_String (
454
454
false , font16x32, Percent_Color, Color_Bg_Black,
455
455
pb_left + (pb_width - dwin_string.length * 16 ) / 2 ,
0 commit comments