mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-29 17:19:50 +02:00
Added number_axis and shared_stepper_disable, fixed spindle indent
This commit is contained in:
@@ -289,7 +289,10 @@ void print_motor_class(int axis, int gang) {
|
|||||||
const char* axis_names[] = { "x", "y", "z", "a", "b", "c" };
|
const char* axis_names[] = { "x", "y", "z", "a", "b", "c" };
|
||||||
void print_axes() {
|
void print_axes() {
|
||||||
section("axes");
|
section("axes");
|
||||||
for (int axis = 0; axis < number_axis->get(); axis++) {
|
int n_axis = number_axis->get();
|
||||||
|
item("number_axis", n_axis);
|
||||||
|
item("shared_stepper_disable", STEPPERS_DISABLE_PIN);
|
||||||
|
for (int axis = 0; axis < n_axis; axis++) {
|
||||||
section(axis_names[axis]);
|
section(axis_names[axis]);
|
||||||
print_steps(axis);
|
print_steps(axis);
|
||||||
print_homing(axis);
|
print_homing(axis);
|
||||||
@@ -438,7 +441,6 @@ void print_onoff_spindle(const char* name, PWM* s) {
|
|||||||
item("direction_pin", pinspec(s->_direction_pin));
|
item("direction_pin", pinspec(s->_direction_pin));
|
||||||
item("disable_with_zero_speed", bool(s->_off_with_zero_speed));
|
item("disable_with_zero_speed", bool(s->_off_with_zero_speed));
|
||||||
item("zero_speed_with_disable", false);
|
item("zero_speed_with_disable", false);
|
||||||
end_section();
|
|
||||||
}
|
}
|
||||||
void print_pwm_spindle(const char* name, PWM* s) {
|
void print_pwm_spindle(const char* name, PWM* s) {
|
||||||
print_onoff_spindle(name, s);
|
print_onoff_spindle(name, s);
|
||||||
|
Reference in New Issue
Block a user