Browse Source

Add a function to home all axes (i.e., gcode_G28)

pull/1/head
Scott Lahteine 8 years ago
parent
commit
2887c20788
  1. 3
      Marlin/G26_Mesh_Validation_Tool.cpp
  2. 2
      Marlin/Marlin_main.cpp
  3. 3
      Marlin/ubl.h
  4. 2
      Marlin/ubl_G29.cpp

3
Marlin/G26_Mesh_Validation_Tool.cpp

@ -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]);

2
Marlin/Marlin_main.cpp

@ -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) {

3
Marlin/ubl.h

@ -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;

2
Marlin/ubl_G29.cpp

@ -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…
Cancel
Save