Browse Source

POWER_LOSS_ZHOME_POS followup

Scott Lahteine 3 years ago
parent
commit
28404f9e87
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/feature/powerloss.cpp

+ 2
- 2
Marlin/src/feature/powerloss.cpp View File

@@ -393,8 +393,8 @@ void PrintJobRecovery::resume() {
393 393
 
394 394
   #ifdef POWER_LOSS_ZHOME_POS
395 395
     // If defined move to a safe Z homing position that avoids the print
396
-    constexpr xy_pos_t homepos = POWER_LOSS_ZHOME_POS;
397
-    sprintf_P(cmd, PSTR("G1 X%s Y%s F1000\nG28Z", dtostrf(homepos.x, 1, 3, str_1), dtostrf(homepos.y, 1, 3, str_2)));
396
+    constexpr xy_pos_t p = POWER_LOSS_ZHOME_POS;
397
+    sprintf_P(cmd, PSTR("G1 X%s Y%s F1000\nG28Z"), dtostrf(p.x, 1, 3, str_1), dtostrf(p.y, 1, 3, str_2));
398 398
     gcode.process_subcommands_now(cmd);
399 399
   #endif
400 400
 

Loading…
Cancel
Save