Bladeren bron

Save some RAM in MBL's G29

Scott Lahteine 8 jaren geleden
bovenliggende
commit
2783dcb4cc
1 gewijzigde bestanden met toevoegingen van 6 en 4 verwijderingen
  1. 6
    4
      Marlin/Marlin_main.cpp

+ 6
- 4
Marlin/Marlin_main.cpp Bestand weergeven

@@ -3623,9 +3623,10 @@ inline void gcode_G28() {
3623 3623
           }
3624 3624
         }
3625 3625
         else {
3626
-          SERIAL_PROTOCOLLNPGM("X not entered.");
3626
+          SERIAL_CHAR('X'); SERIAL_PROTOCOLLNPGM(" not entered.");
3627 3627
           return;
3628 3628
         }
3629
+
3629 3630
         if (code_seen('Y')) {
3630 3631
           py = code_value_int() - 1;
3631 3632
           if (py < 0 || py >= MESH_NUM_Y_POINTS) {
@@ -3634,14 +3635,15 @@ inline void gcode_G28() {
3634 3635
           }
3635 3636
         }
3636 3637
         else {
3637
-          SERIAL_PROTOCOLLNPGM("Y not entered.");
3638
+          SERIAL_CHAR('Y'); SERIAL_PROTOCOLLNPGM(" not entered.");
3638 3639
           return;
3639 3640
         }
3641
+
3640 3642
         if (code_seen('Z')) {
3641 3643
           mbl.z_values[py][px] = code_value_axis_units(Z_AXIS);
3642 3644
         }
3643 3645
         else {
3644
-          SERIAL_PROTOCOLLNPGM("Z not entered.");
3646
+          SERIAL_CHAR('Z'); SERIAL_PROTOCOLLNPGM(" not entered.");
3645 3647
           return;
3646 3648
         }
3647 3649
         break;
@@ -3651,7 +3653,7 @@ inline void gcode_G28() {
3651 3653
           mbl.z_offset = code_value_axis_units(Z_AXIS);
3652 3654
         }
3653 3655
         else {
3654
-          SERIAL_PROTOCOLLNPGM("Z not entered.");
3656
+          SERIAL_CHAR('Z'); SERIAL_PROTOCOLLNPGM(" not entered.");
3655 3657
           return;
3656 3658
         }
3657 3659
         break;

Laden…
Annuleren
Opslaan