Skip to content

Commit d87d747

Browse files
ManuelMcLurethinkyhead
authored andcommitted
🩹 Fix spurious "bad command" (MarlinFirmware#24923)
1 parent 4ce2f1e commit d87d747

File tree

1 file changed

+2
-2
lines changed
  • Marlin/src/feature/bedlevel/ubl

1 file changed

+2
-2
lines changed

Marlin/src/feature/bedlevel/ubl/ubl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ bool unified_bed_leveling::sanity_check() {
260260
*/
261261
void GcodeSuite::M1004() {
262262

263-
#define ALIGN_GCODE TERN(Z_STEPPER_AUTO_ALIGN, "G34", "")
263+
#define ALIGN_GCODE TERN(Z_STEPPER_AUTO_ALIGN, "G34\n", "")
264264
#define PROBE_GCODE TERN(HAS_BED_PROBE, "G29P1\nG29P3", "G29P4R")
265265

266266
#if HAS_HOTEND
@@ -280,7 +280,7 @@ bool unified_bed_leveling::sanity_check() {
280280
#endif
281281

282282
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
284284
PROBE_GCODE "\n" // Build mesh with available hardware
285285
"G29P3\nG29P3")); // Ensure mesh is complete by running smart fill twice
286286

0 commit comments

Comments
 (0)