@@ -162,8 +162,8 @@ float g26_random_deviation = 0.0;
162162 */
163163 bool user_canceled () {
164164 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 ();
167167 ui.wait_for_release ();
168168 return true ;
169169 }
@@ -321,11 +321,9 @@ typedef struct {
321321 #if HAS_HEATED_BED
322322
323323 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 ());
329327 thermalManager.setTargetBed (bed_temp);
330328
331329 // Wait for the temperature to stabilize
@@ -340,20 +338,16 @@ typedef struct {
340338 #endif // HAS_HEATED_BED
341339
342340 // 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 ();
347343 thermalManager.setTargetHotend (hotend_temp, active_extruder);
348344
349345 // Wait for the temperature to stabilize
350346 if (!thermalManager.wait_for_hotend (active_extruder, true OPTARG (G26_CLICK_CAN_CANCEL, true )))
351347 return G26_ERR;
352348
353- #if HAS_WIRED_LCD
354- ui.reset_status ();
355- ui.quick_feedback ();
356- #endif
349+ ui.reset_status ();
350+ ui.completion_feedback ();
357351
358352 return G26_OK;
359353 }
@@ -371,7 +365,7 @@ typedef struct {
371365
372366 if (prime_flag == -1 ) { // The user wants to control how much filament gets purged
373367 ui.capture ();
374- ui. set_status ( GET_TEXT_F ( MSG_G26_MANUAL_PRIME), 99 );
368+ LCD_MESSAGE_MAX ( MSG_G26_MANUAL_PRIME);
375369 ui.chirp ();
376370
377371 destination = current_position;
@@ -398,17 +392,15 @@ typedef struct {
398392
399393 ui.wait_for_release ();
400394
401- ui. set_status ( GET_TEXT_F ( MSG_G26_PRIME_DONE), 99 );
395+ LCD_MESSAGE_MAX ( MSG_G26_PRIME_DONE);
402396 ui.quick_feedback ();
403397 ui.release ();
404398 }
405399 else
406400 #endif
407401 {
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 ();
412404 destination = current_position;
413405 destination.e += prime_length;
414406 prepare_internal_move_to_destination (fr_slow_e);
@@ -853,7 +845,7 @@ void GcodeSuite::G26() {
853845 } while (--g26_repeats && location.valid ());
854846
855847 LEAVE:
856- ui. set_status ( GET_TEXT_F ( MSG_G26_LEAVING), - 1 );
848+ LCD_MESSAGE_MIN ( MSG_G26_LEAVING);
857849 TERN_ (EXTENSIBLE_UI, ExtUI::onMeshUpdate (location, ExtUI::G26_FINISH));
858850
859851 g26.retract_filament (destination);
0 commit comments