Browse Source

🩹 Fix ADVANCED_PAUSE_RESUME_PRIME check

Fixes #23824
Scott Lahteine 3 years ago
parent
commit
f31d3c6749
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/src/feature/pause.cpp

+ 3
- 2
Marlin/src/feature/pause.cpp View File

672
 
672
 
673
   // If resume_position is negative
673
   // If resume_position is negative
674
   if (resume_position.e < 0) unscaled_e_move(resume_position.e, feedRate_t(PAUSE_PARK_RETRACT_FEEDRATE));
674
   if (resume_position.e < 0) unscaled_e_move(resume_position.e, feedRate_t(PAUSE_PARK_RETRACT_FEEDRATE));
675
-  #if ADVANCED_PAUSE_RESUME_PRIME != 0
676
-    unscaled_e_move(ADVANCED_PAUSE_RESUME_PRIME, feedRate_t(ADVANCED_PAUSE_PURGE_FEEDRATE));
675
+  #ifdef ADVANCED_PAUSE_RESUME_PRIME
676
+    if (ADVANCED_PAUSE_RESUME_PRIME != 0)
677
+      unscaled_e_move(ADVANCED_PAUSE_RESUME_PRIME, feedRate_t(ADVANCED_PAUSE_PURGE_FEEDRATE));
677
   #endif
678
   #endif
678
 
679
 
679
   // Now all extrusion positions are resumed and ready to be confirmed
680
   // Now all extrusion positions are resumed and ready to be confirmed

Loading…
Cancel
Save