Skip to content

Commit f31d3c6

Browse files
committed
🩹 Fix ADVANCED_PAUSE_RESUME_PRIME check
Fixes MarlinFirmware#23824
1 parent c53af0d commit f31d3c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Marlin/src/feature/pause.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,9 @@ void resume_print(const_float_t slow_load_length/*=0*/, const_float_t fast_load_
672672

673673
// If resume_position is negative
674674
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));
677678
#endif
678679

679680
// Now all extrusion positions are resumed and ready to be confirmed

0 commit comments

Comments
 (0)