Add a function to home all axes (i.e., gcode_G28)
This commit is contained in:
parent
8f895d5e01
commit
2887c20788
@ -132,7 +132,6 @@
|
|||||||
bool prepare_move_to_destination_cartesian();
|
bool prepare_move_to_destination_cartesian();
|
||||||
void line_to_destination();
|
void line_to_destination();
|
||||||
void line_to_destination(float);
|
void line_to_destination(float);
|
||||||
void gcode_G28();
|
|
||||||
void sync_plan_position_e();
|
void sync_plan_position_e();
|
||||||
void un_retract_filament(float where[XYZE]);
|
void un_retract_filament(float where[XYZE]);
|
||||||
void retract_filament(float where[XYZE]);
|
void retract_filament(float where[XYZE]);
|
||||||
|
@ -3928,6 +3928,8 @@ inline void gcode_G28() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void home_all_axes() { gcode_G28(); }
|
||||||
|
|
||||||
#if HAS_PROBING_PROCEDURE
|
#if HAS_PROBING_PROCEDURE
|
||||||
|
|
||||||
void out_of_range_error(const char* p_edge) {
|
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);
|
bool is_bit_set(uint16_t bits[16], uint8_t x, uint8_t y);
|
||||||
char *ftostr43sign(const float&, char);
|
char *ftostr43sign(const float&, char);
|
||||||
|
|
||||||
|
void home_all_axes();
|
||||||
|
|
||||||
void gcode_G26();
|
void gcode_G26();
|
||||||
void gcode_G28();
|
|
||||||
void gcode_G29();
|
void gcode_G29();
|
||||||
|
|
||||||
extern int ubl_cnt;
|
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
|
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,
|
if (g29_parameter_parsing()) return; // abort if parsing the simple parameters causes a problem,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user