@@ -532,7 +532,7 @@ void GcodeSuite::G26() {
532
532
533
533
if (bedtemp) {
534
534
if (!WITHIN (bedtemp, 40 , BED_MAX_TARGET)) {
535
- SERIAL_ECHOLNPGM (" ? Specified bed temperature not plausible (40-" , BED_MAX_TARGET, " C)." );
535
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " Specified bed temperature not plausible (40-" , BED_MAX_TARGET, " C)." ) );
536
536
return ;
537
537
}
538
538
g26.bed_temp = bedtemp;
@@ -543,7 +543,7 @@ void GcodeSuite::G26() {
543
543
if (parser.seenval (' L' )) {
544
544
g26.layer_height = parser.value_linear_units ();
545
545
if (!WITHIN (g26.layer_height , 0.0 , 2.0 )) {
546
- SERIAL_ECHOLNPGM (" ? Specified layer height not plausible." );
546
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " Specified layer height not plausible." ) );
547
547
return ;
548
548
}
549
549
}
@@ -552,20 +552,20 @@ void GcodeSuite::G26() {
552
552
if (parser.has_value ()) {
553
553
g26.retraction_multiplier = parser.value_float ();
554
554
if (!WITHIN (g26.retraction_multiplier , 0.05 , 15.0 )) {
555
- SERIAL_ECHOLNPGM (" ? Specified Retraction Multiplier not plausible." );
555
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " Specified Retraction Multiplier not plausible." ) );
556
556
return ;
557
557
}
558
558
}
559
559
else {
560
- SERIAL_ECHOLNPGM (" ? Retraction Multiplier must be specified." );
560
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " Retraction Multiplier must be specified." ) );
561
561
return ;
562
562
}
563
563
}
564
564
565
565
if (parser.seenval (' S' )) {
566
566
g26.nozzle = parser.value_float ();
567
567
if (!WITHIN (g26.nozzle , 0.1 , 2.0 )) {
568
- SERIAL_ECHOLNPGM (" ? Specified nozzle size not plausible." );
568
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " Specified nozzle size not plausible." ) );
569
569
return ;
570
570
}
571
571
}
@@ -575,15 +575,15 @@ void GcodeSuite::G26() {
575
575
#if HAS_MARLINUI_MENU
576
576
g26.prime_flag = -1 ;
577
577
#else
578
- SERIAL_ECHOLNPGM (" ? Prime length must be specified when not using an LCD." );
578
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " Prime length must be specified when not using an LCD." ) );
579
579
return ;
580
580
#endif
581
581
}
582
582
else {
583
583
g26.prime_flag ++;
584
584
g26.prime_length = parser.value_linear_units ();
585
585
if (!WITHIN (g26.prime_length , 0.0 , 25.0 )) {
586
- SERIAL_ECHOLNPGM (" ? Specified prime length not plausible." );
586
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " Specified prime length not plausible." ) );
587
587
return ;
588
588
}
589
589
}
@@ -592,7 +592,7 @@ void GcodeSuite::G26() {
592
592
if (parser.seenval (' F' )) {
593
593
g26.filament_diameter = parser.value_linear_units ();
594
594
if (!WITHIN (g26.filament_diameter , 1.0 , 4.0 )) {
595
- SERIAL_ECHOLNPGM (" ? Specified filament size not plausible." );
595
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " Specified filament size not plausible." ) );
596
596
return ;
597
597
}
598
598
}
@@ -616,7 +616,7 @@ void GcodeSuite::G26() {
616
616
// If any preset or temperature was specified
617
617
if (noztemp) {
618
618
if (!WITHIN (noztemp, 165 , thermalManager.hotend_max_target (active_extruder))) {
619
- SERIAL_ECHOLNPGM (" ? Specified nozzle temperature not plausible." );
619
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " Specified nozzle temperature not plausible." ) );
620
620
return ;
621
621
}
622
622
g26.hotend_temp = noztemp;
@@ -637,20 +637,20 @@ void GcodeSuite::G26() {
637
637
if (parser.seen (' R' ))
638
638
g26_repeats = parser.has_value () ? parser.value_int () : GRID_MAX_POINTS + 1 ;
639
639
else {
640
- SERIAL_ECHOLNPGM (" ? (R)epeat must be specified when not using an LCD." );
640
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " (R)epeat must be specified when not using an LCD." ) );
641
641
return ;
642
642
}
643
643
#endif
644
644
if (g26_repeats < 1 ) {
645
- SERIAL_ECHOLNPGM (" ? (R)epeat value not plausible; must be at least 1." );
645
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " (R)epeat value not plausible; must be at least 1." ) );
646
646
return ;
647
647
}
648
648
649
649
// Set a position with 'X' and/or 'Y'. Default: current_position
650
650
g26.xy_pos .set (parser.seenval (' X' ) ? RAW_X_POSITION (parser.value_linear_units ()) : current_position.x ,
651
651
parser.seenval (' Y' ) ? RAW_Y_POSITION (parser.value_linear_units ()) : current_position.y );
652
652
if (!position_is_reachable (g26.xy_pos )) {
653
- SERIAL_ECHOLNPGM (" ? Specified X,Y coordinate out of bounds." );
653
+ SERIAL_ECHOLNPGM (GCODE_ERR_MSG ( " Specified X,Y coordinate out of bounds." ) );
654
654
return ;
655
655
}
656
656
0 commit comments