Browse Source

Don't let the flow multiplier affect retract/recover length

pull/1/head
Scott Lahteine 8 years ago
parent
commit
9fc72422e4
  1. 6
      Marlin/Marlin_main.cpp

6
Marlin/Marlin_main.cpp

@ -3150,6 +3150,10 @@ static void homeaxis(const AxisEnum axis) {
const bool has_zhop = retract_zlift > 0.01; // Is there a hop set? const bool has_zhop = retract_zlift > 0.01; // Is there a hop set?
const float old_feedrate_mm_s = feedrate_mm_s; const float old_feedrate_mm_s = feedrate_mm_s;
const int16_t old_flow = flow_percentage[active_extruder];
// Don't apply flow multiplication to retract/recover
flow_percentage[active_extruder] = 100;
// The current position will be the destination for E and Z moves // The current position will be the destination for E and Z moves
set_destination_to_current(); set_destination_to_current();
@ -3192,6 +3196,8 @@ static void homeaxis(const AxisEnum axis) {
prepare_move_to_destination(); // Recover E prepare_move_to_destination(); // Recover E
} }
// Restore flow and feedrate
flow_percentage[active_extruder] = old_flow;
feedrate_mm_s = old_feedrate_mm_s; feedrate_mm_s = old_feedrate_mm_s;
// The active extruder is now retracted or recovered // The active extruder is now retracted or recovered

Loading…
Cancel
Save