Replace some constants with N_AXIS.

This commit is contained in:
Alexander Danilov
2013-01-10 02:22:45 +04:00
parent 53286744d5
commit 7c6162b90a
6 changed files with 11 additions and 11 deletions

View File

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