Browse Source

fix compilation for home hon top (#21894)

FilippoR 4 years ago
parent
commit
e72fe0ad14
No account linked to committer's email address
1 changed files with 5 additions and 6 deletions
  1. 5
    6
      Marlin/src/feature/powerloss.cpp

+ 5
- 6
Marlin/src/feature/powerloss.cpp View File

@@ -380,12 +380,11 @@ void PrintJobRecovery::resume() {
380 380
     float z_now = z_raised;
381 381
 
382 382
     // If Z homing goes to max then just move back to the "raised" position
383
-    gcode.process_subcommands_now_P(PSTR(
384
-        "G28R0\n"     // Home all axes (no raise)
385
-        "G1Z%sF1200"  // Move Z down to (raised) height
386
-      ),
387
-      dtostrf(z_now, 1, 3, str_1)
388
-    );
383
+    sprintf_P(cmd, PSTR(
384
+            "G28R0\n"     // Home all axes (no raise)
385
+            "G1Z%sF1200"  // Move Z down to (raised) height
386
+          ), dtostrf(z_now, 1, 3, str_1));
387
+    gcode.process_subcommands_now(cmd);
389 388
 
390 389
   #else
391 390
 

Loading…
Cancel
Save