Browse Source

🩹 Fix spurious "bad command" (#24923)

Manuel McLure 2 years ago
parent
commit
cf2311f768
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/feature/bedlevel/ubl/ubl.cpp

+ 2
- 2
Marlin/src/feature/bedlevel/ubl/ubl.cpp View File

260
    */
260
    */
261
   void GcodeSuite::M1004() {
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
     #define PROBE_GCODE TERN(HAS_BED_PROBE, "G29P1\nG29P3", "G29P4R")
264
     #define PROBE_GCODE TERN(HAS_BED_PROBE, "G29P1\nG29P3", "G29P4R")
265
 
265
 
266
     #if HAS_HOTEND
266
     #if HAS_HOTEND
280
     #endif
280
     #endif
281
 
281
 
282
     process_subcommands_now(FPSTR(G28_STR));      // Home
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
                               PROBE_GCODE "\n"    // Build mesh with available hardware
284
                               PROBE_GCODE "\n"    // Build mesh with available hardware
285
                               "G29P3\nG29P3"));   // Ensure mesh is complete by running smart fill twice
285
                               "G29P3\nG29P3"));   // Ensure mesh is complete by running smart fill twice
286
 
286
 

Loading…
Cancel
Save