do_pause_e_move => unscaled_e_move

This commit is contained in:
Scott Lahteine
2020-03-29 16:26:55 -05:00
parent fc11e72174
commit 765a9f3471
7 changed files with 33 additions and 35 deletions

View File

@ -55,6 +55,10 @@
#include "../lcd/ultralcd.h"
#endif
#if HAS_FILAMENT_SENSOR
#include "../feature/runout.h"
#endif
#if ENABLED(SENSORLESS_HOMING)
#include "../feature/tmc_util.h"
#endif
@ -332,6 +336,15 @@ void line_to_current_position(const feedRate_t &fr_mm_s/*=feedrate_mm_s*/) {
planner.buffer_line(current_position, fr_mm_s, active_extruder);
}
void unscaled_e_move(const float &length, const feedRate_t &fr_mm_s) {
#if HAS_FILAMENT_SENSOR
runout.reset();
#endif
current_position.e += length / planner.e_factor[active_extruder];
line_to_current_position(fr_mm_s);
planner.synchronize();
}
#if IS_KINEMATIC
/**