Fix build if EXTRUDERS = 0 (#15417)

2.0.x
Frederik Kemner 5 years ago committed by Scott Lahteine
parent 50e4545255
commit 4564ad2920

@ -319,8 +319,10 @@ void _internal_move_to_destination(const feedRate_t &fr_mm_s/*=0.0f*/
const uint16_t old_pct = feedrate_percentage;
feedrate_percentage = 100;
#if EXTRUDERS
const float old_fac = planner.e_factor[active_extruder];
planner.e_factor[active_extruder] = 1.0f;
#endif
#if IS_KINEMATIC
if (is_fast)
@ -331,7 +333,9 @@ void _internal_move_to_destination(const feedRate_t &fr_mm_s/*=0.0f*/
feedrate_mm_s = old_feedrate;
feedrate_percentage = old_pct;
#if EXTRUDERS
planner.e_factor[active_extruder] = old_fac;
#endif
}
/**

Loading…
Cancel
Save