Browse Source

No unscaled_e_move for CNC

vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
223aa5cc4e
  1. 18
      Marlin/src/module/motion.cpp
  2. 4
      Marlin/src/module/motion.h

18
Marlin/src/module/motion.cpp

@ -336,14 +336,16 @@ 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 EXTRUDERS
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();
}
#endif
#if IS_KINEMATIC

4
Marlin/src/module/motion.h

@ -184,7 +184,9 @@ void sync_plan_position_e();
*/
void line_to_current_position(const feedRate_t &fr_mm_s=feedrate_mm_s);
void unscaled_e_move(const float &length, const feedRate_t &fr_mm_s);
#if EXTRUDERS
void unscaled_e_move(const float &length, const feedRate_t &fr_mm_s);
#endif
void prepare_line_to_destination();

Loading…
Cancel
Save