Add pre-calculated planner.e_factor
This commit is contained in:
@ -130,7 +130,7 @@ void FWRetract::retract(const bool retracting
|
||||
set_destination_from_current();
|
||||
stepper.synchronize(); // Wait for buffered moves to complete
|
||||
|
||||
const float renormalize = 100.0 / planner.flow_percentage[active_extruder] / planner.volumetric_multiplier[active_extruder];
|
||||
const float renormalize = 1.0 / planner.e_factor[active_extruder];
|
||||
|
||||
if (retracting) {
|
||||
// Retract by moving from a faux E position back to the current E position
|
||||
|
@ -94,7 +94,7 @@ static void ensure_safe_temperature() {
|
||||
}
|
||||
|
||||
void do_pause_e_move(const float &length, const float fr) {
|
||||
current_position[E_AXIS] += length * 100.0 / planner.flow_percentage[active_extruder] / planner.volumetric_multiplier[active_extruder];
|
||||
current_position[E_AXIS] += length / planner.e_factor[active_extruder];
|
||||
set_destination_from_current();
|
||||
#if IS_KINEMATIC
|
||||
planner.buffer_line_kinematic(destination, fr, active_extruder);
|
||||
|
Reference in New Issue
Block a user