This fix is not DELTA compatible
This commit is contained in:
parent
064efb20e0
commit
664b299a51
@ -225,9 +225,12 @@ void ok_to_send();
|
|||||||
|
|
||||||
void reset_bed_level();
|
void reset_bed_level();
|
||||||
void prepare_move();
|
void prepare_move();
|
||||||
void set_current_position_from_planner();
|
|
||||||
void kill(const char*);
|
void kill(const char*);
|
||||||
|
|
||||||
|
#if DISABLED(DELTA) && DISABLED(SCARA)
|
||||||
|
void set_current_position_from_planner();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
void handle_filament_runout();
|
void handle_filament_runout();
|
||||||
#endif
|
#endif
|
||||||
|
@ -5894,7 +5894,8 @@ inline void gcode_M400() { stepper.synchronize(); }
|
|||||||
|
|
||||||
#endif // FILAMENT_WIDTH_SENSOR
|
#endif // FILAMENT_WIDTH_SENSOR
|
||||||
|
|
||||||
void set_current_position_from_planner() {
|
#if DISABLED(DELTA) && DISABLED(SCARA)
|
||||||
|
void set_current_position_from_planner() {
|
||||||
stepper.synchronize();
|
stepper.synchronize();
|
||||||
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
|
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
|
||||||
vector_3 pos = planner.adjusted_position(); // values directly from steppers...
|
vector_3 pos = planner.adjusted_position(); // values directly from steppers...
|
||||||
@ -5907,7 +5908,8 @@ void set_current_position_from_planner() {
|
|||||||
current_position[Z_AXIS] = stepper.get_axis_position_mm(Z_AXIS);
|
current_position[Z_AXIS] = stepper.get_axis_position_mm(Z_AXIS);
|
||||||
#endif
|
#endif
|
||||||
sync_plan_position(); // ...re-apply to planner position
|
sync_plan_position(); // ...re-apply to planner position
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* M410: Quickstop - Abort all planned moves
|
* M410: Quickstop - Abort all planned moves
|
||||||
@ -5917,7 +5919,9 @@ void set_current_position_from_planner() {
|
|||||||
*/
|
*/
|
||||||
inline void gcode_M410() {
|
inline void gcode_M410() {
|
||||||
stepper.quick_stop();
|
stepper.quick_stop();
|
||||||
|
#if DISABLED(DELTA) && DISABLED(SCARA)
|
||||||
set_current_position_from_planner();
|
set_current_position_from_planner();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -187,7 +187,9 @@ void Endstops::report_state() {
|
|||||||
card.sdprinting = false;
|
card.sdprinting = false;
|
||||||
card.closefile();
|
card.closefile();
|
||||||
stepper.quick_stop();
|
stepper.quick_stop();
|
||||||
|
#if DISABLED(DELTA) && DISABLED(SCARA)
|
||||||
set_current_position_from_planner();
|
set_current_position_from_planner();
|
||||||
|
#endif
|
||||||
thermalManager.disable_all_heaters(); // switch off all heaters.
|
thermalManager.disable_all_heaters(); // switch off all heaters.
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -482,7 +482,9 @@ inline void line_to_current(AxisEnum axis) {
|
|||||||
|
|
||||||
static void lcd_sdcard_stop() {
|
static void lcd_sdcard_stop() {
|
||||||
stepper.quick_stop();
|
stepper.quick_stop();
|
||||||
|
#if DISABLED(DELTA) && DISABLED(SCARA)
|
||||||
set_current_position_from_planner();
|
set_current_position_from_planner();
|
||||||
|
#endif
|
||||||
clear_command_queue();
|
clear_command_queue();
|
||||||
card.sdprinting = false;
|
card.sdprinting = false;
|
||||||
card.closefile();
|
card.closefile();
|
||||||
|
Loading…
Reference in New Issue
Block a user