1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-03 03:13:25 +02:00

Hard limit handling in CoreXY

This commit is contained in:
bdring
2020-12-19 11:06:09 -06:00
parent e6faee455b
commit 56b8d7410b

View File

@@ -83,6 +83,8 @@ bool user_defined_homing(uint8_t cycle_mask) {
if (setting_error)
return true;
limits_disable();
// setup the motion parameters
plan_line_data_t plan_data;
plan_line_data_t* pl_data = &plan_data;
@@ -174,6 +176,7 @@ bool user_defined_homing(uint8_t cycle_mask) {
motors_set_homing_mode(cycle_mask, false); // tell motors homing is done...failed
mc_reset(); // Stop motors, if they are running.
protocol_execute_realtime();
limits_init();
return true;
} else {
// Pull-off motion complete. Disable CYCLE_STOP from executing.