@@ -162,8 +162,8 @@ float g26_random_deviation = 0.0;
162
162
*/
163
163
bool user_canceled () {
164
164
if (!ui.button_pressed ()) return false ; // Return if the button isn't pressed
165
- ui. set_status ( GET_TEXT_F ( MSG_G26_CANCELED), 99 );
166
- TERN_ (HAS_MARLINUI_MENU, ui.quick_feedback () );
165
+ LCD_MESSAGE_MAX ( MSG_G26_CANCELED);
166
+ ui.quick_feedback ();
167
167
ui.wait_for_release ();
168
168
return true ;
169
169
}
@@ -321,11 +321,9 @@ typedef struct {
321
321
#if HAS_HEATED_BED
322
322
323
323
if (bed_temp > 25 ) {
324
- #if HAS_WIRED_LCD
325
- ui.set_status (GET_TEXT_F (MSG_G26_HEATING_BED), 99 );
326
- ui.quick_feedback ();
327
- TERN_ (HAS_MARLINUI_MENU, ui.capture ());
328
- #endif
324
+ LCD_MESSAGE_MAX (MSG_G26_HEATING_BED);
325
+ ui.quick_feedback ();
326
+ TERN_ (HAS_MARLINUI_MENU, ui.capture ());
329
327
thermalManager.setTargetBed (bed_temp);
330
328
331
329
// Wait for the temperature to stabilize
@@ -340,20 +338,16 @@ typedef struct {
340
338
#endif // HAS_HEATED_BED
341
339
342
340
// Start heating the active nozzle
343
- #if HAS_WIRED_LCD
344
- ui.set_status (GET_TEXT_F (MSG_G26_HEATING_NOZZLE), 99 );
345
- ui.quick_feedback ();
346
- #endif
341
+ LCD_MESSAGE_MAX (MSG_G26_HEATING_NOZZLE);
342
+ ui.quick_feedback ();
347
343
thermalManager.setTargetHotend (hotend_temp, active_extruder);
348
344
349
345
// Wait for the temperature to stabilize
350
346
if (!thermalManager.wait_for_hotend (active_extruder, true OPTARG (G26_CLICK_CAN_CANCEL, true )))
351
347
return G26_ERR;
352
348
353
- #if HAS_WIRED_LCD
354
- ui.reset_status ();
355
- ui.quick_feedback ();
356
- #endif
349
+ ui.reset_status ();
350
+ ui.completion_feedback ();
357
351
358
352
return G26_OK;
359
353
}
@@ -371,7 +365,7 @@ typedef struct {
371
365
372
366
if (prime_flag == -1 ) { // The user wants to control how much filament gets purged
373
367
ui.capture ();
374
- ui. set_status ( GET_TEXT_F ( MSG_G26_MANUAL_PRIME), 99 );
368
+ LCD_MESSAGE_MAX ( MSG_G26_MANUAL_PRIME);
375
369
ui.chirp ();
376
370
377
371
destination = current_position;
@@ -398,17 +392,15 @@ typedef struct {
398
392
399
393
ui.wait_for_release ();
400
394
401
- ui. set_status ( GET_TEXT_F ( MSG_G26_PRIME_DONE), 99 );
395
+ LCD_MESSAGE_MAX ( MSG_G26_PRIME_DONE);
402
396
ui.quick_feedback ();
403
397
ui.release ();
404
398
}
405
399
else
406
400
#endif
407
401
{
408
- #if HAS_WIRED_LCD
409
- ui.set_status (GET_TEXT_F (MSG_G26_FIXED_LENGTH), 99 );
410
- ui.quick_feedback ();
411
- #endif
402
+ LCD_MESSAGE_MAX (MSG_G26_FIXED_LENGTH);
403
+ ui.quick_feedback ();
412
404
destination = current_position;
413
405
destination.e += prime_length;
414
406
prepare_internal_move_to_destination (fr_slow_e);
@@ -853,7 +845,7 @@ void GcodeSuite::G26() {
853
845
} while (--g26_repeats && location.valid ());
854
846
855
847
LEAVE:
856
- ui. set_status ( GET_TEXT_F ( MSG_G26_LEAVING), - 1 );
848
+ LCD_MESSAGE_MIN ( MSG_G26_LEAVING);
857
849
TERN_ (EXTENSIBLE_UI, ExtUI::onMeshUpdate (location, ExtUI::G26_FINISH));
858
850
859
851
g26.retract_filament (destination);
0 commit comments