Add a function to home all axes (i.e., gcode_G28)
This commit is contained in:
parent
8f895d5e01
commit
2887c20788
@ -131,8 +131,7 @@
|
||||
#define PLANNER_XY_FEEDRATE() (min(planner.max_feedrate_mm_s[X_AXIS], planner.max_feedrate_mm_s[Y_AXIS])) //bob
|
||||
bool prepare_move_to_destination_cartesian();
|
||||
void line_to_destination();
|
||||
void line_to_destination(float );
|
||||
void gcode_G28();
|
||||
void line_to_destination(float);
|
||||
void sync_plan_position_e();
|
||||
void un_retract_filament(float where[XYZE]);
|
||||
void retract_filament(float where[XYZE]);
|
||||
|
@ -3928,6 +3928,8 @@ inline void gcode_G28() {
|
||||
#endif
|
||||
}
|
||||
|
||||
void home_all_axes() { gcode_G28(); }
|
||||
|
||||
#if HAS_PROBING_PROCEDURE
|
||||
|
||||
void out_of_range_error(const char* p_edge) {
|
||||
|
@ -61,8 +61,9 @@
|
||||
bool is_bit_set(uint16_t bits[16], uint8_t x, uint8_t y);
|
||||
char *ftostr43sign(const float&, char);
|
||||
|
||||
void home_all_axes();
|
||||
|
||||
void gcode_G26();
|
||||
void gcode_G28();
|
||||
void gcode_G29();
|
||||
|
||||
extern int ubl_cnt;
|
||||
|
@ -324,7 +324,7 @@
|
||||
}
|
||||
|
||||
if (!code_seen('N') && axis_unhomed_error(true, true, true)) // Don't allow auto-leveling without homing first
|
||||
gcode_G28();
|
||||
home_all_axes();
|
||||
|
||||
if (g29_parameter_parsing()) return; // abort if parsing the simple parameters causes a problem,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user