Parcourir la source

🩹 Fix spurious "bad command" (#24923)

Manuel McLure il y a 1 an
Parent
révision
cf2311f768
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      Marlin/src/feature/bedlevel/ubl/ubl.cpp

+ 2
- 2
Marlin/src/feature/bedlevel/ubl/ubl.cpp Voir le fichier

@@ -260,7 +260,7 @@ bool unified_bed_leveling::sanity_check() {
260 260
    */
261 261
   void GcodeSuite::M1004() {
262 262
 
263
-    #define ALIGN_GCODE TERN(Z_STEPPER_AUTO_ALIGN, "G34", "")
263
+    #define ALIGN_GCODE TERN(Z_STEPPER_AUTO_ALIGN, "G34\n", "")
264 264
     #define PROBE_GCODE TERN(HAS_BED_PROBE, "G29P1\nG29P3", "G29P4R")
265 265
 
266 266
     #if HAS_HOTEND
@@ -280,7 +280,7 @@ bool unified_bed_leveling::sanity_check() {
280 280
     #endif
281 281
 
282 282
     process_subcommands_now(FPSTR(G28_STR));      // Home
283
-    process_subcommands_now(F(ALIGN_GCODE "\n"    // Align multi z axis if available
283
+    process_subcommands_now(F(ALIGN_GCODE         // Align multi z axis if available
284 284
                               PROBE_GCODE "\n"    // Build mesh with available hardware
285 285
                               "G29P3\nG29P3"));   // Ensure mesh is complete by running smart fill twice
286 286
 

Chargement…
Annuler
Enregistrer