Replace some constants with N_AXIS.
This commit is contained in:
parent
53286744d5
commit
7c6162b90a
6 changed files with 11 additions and 11 deletions
2
limits.c
2
limits.c
|
|
@ -96,7 +96,7 @@ static void homing_cycle(uint8_t cycle_mask, int8_t pos_dir, bool invert_pin, fl
|
|||
// and speedy homing routine.
|
||||
// NOTE: For each axes enabled, the following calculations assume they physically move
|
||||
// an equal distance over each time step until they hit a limit switch, aka dogleg.
|
||||
uint32_t steps[3];
|
||||
uint32_t steps[N_AXIS];
|
||||
uint8_t dist = 0;
|
||||
clear_vector(steps);
|
||||
if (cycle_mask & (1<<X_AXIS)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue