mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-23 22:52:58 +02:00
Include homing sections if homing_init_lock is true
This commit is contained in:
@@ -118,9 +118,6 @@ void print_steps(int axis) {
|
|||||||
item("soft_limits", tf(soft_limits->get()));
|
item("soft_limits", tf(soft_limits->get()));
|
||||||
}
|
}
|
||||||
void print_homing(int axis) {
|
void print_homing(int axis) {
|
||||||
if (!homing_enable->get()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int cycle;
|
int cycle;
|
||||||
for (cycle = 0; cycle < MAX_N_AXIS; cycle++) {
|
for (cycle = 0; cycle < MAX_N_AXIS; cycle++) {
|
||||||
if (bitnum_istrue(homing_cycle[cycle]->get(), axis)) {
|
if (bitnum_istrue(homing_cycle[cycle]->get(), axis)) {
|
||||||
@@ -255,9 +252,6 @@ void print_stepstick(StandardStepper* m, int axis, int gang, const char* name) {
|
|||||||
}
|
}
|
||||||
pin_item("ms3_pin", ms3_pin);
|
pin_item("ms3_pin", ms3_pin);
|
||||||
|
|
||||||
#ifdef STEPPER_RESET
|
|
||||||
pin_item("reset_pin", STEPPER_RESET);
|
|
||||||
#endif
|
|
||||||
end_section();
|
end_section();
|
||||||
}
|
}
|
||||||
const char* trinamicModes(TrinamicMode mode) {
|
const char* trinamicModes(TrinamicMode mode) {
|
||||||
@@ -383,11 +377,22 @@ void print_axes() {
|
|||||||
section("axes");
|
section("axes");
|
||||||
int n_axis = number_axis->get();
|
int n_axis = number_axis->get();
|
||||||
pin_item("shared_stepper_disable_pin", STEPPERS_DISABLE_PIN);
|
pin_item("shared_stepper_disable_pin", STEPPERS_DISABLE_PIN);
|
||||||
|
#ifdef STEPPER_RESET
|
||||||
|
pin_item("shared_stepper_reset_pin", STEPPER_RESET);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
bool homing = homing_enable->get();
|
||||||
|
#ifdef HOMING_INIT_LOCK
|
||||||
|
homing = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
check_for_trinamic_daisy_chain();
|
check_for_trinamic_daisy_chain();
|
||||||
for (int axis = 0; axis < n_axis; axis++) {
|
for (int axis = 0; axis < n_axis; axis++) {
|
||||||
section(axis_names[axis]);
|
section(axis_names[axis]);
|
||||||
print_steps(axis);
|
print_steps(axis);
|
||||||
|
if (homing) {
|
||||||
print_homing(axis);
|
print_homing(axis);
|
||||||
|
}
|
||||||
for (int gang = 0; gang < 2; gang++) {
|
for (int gang = 0; gang < 2; gang++) {
|
||||||
section(gang ? "motor1" : "motor0");
|
section(gang ? "motor1" : "motor0");
|
||||||
print_endstops(axis, gang);
|
print_endstops(axis, gang);
|
||||||
|
Reference in New Issue
Block a user