DDA: Rename confusing variable name.

'all_time' sounds like forever to me, but this variable really
tracks the last time we hit one of "all the axes".  It sticks
out more now in looping, so rename it to make sense.
This commit is contained in:
Phil Hord 2013-11-25 16:16:18 -05:00 committed by Markus Hitter
parent bc4cf20341
commit 24f5416bba
2 changed files with 3 additions and 3 deletions

2
dda.c
View File

@ -651,7 +651,7 @@ void dda_step(DDA *dda) {
dda->c = 0xFFFFFFFF;
for (i = X; i < AXIS_COUNT; i++) {
if (move_state.steps[i]) {
c_candidate = move_state.time[i] + dda->step_interval[i] - move_state.all_time;
c_candidate = move_state.time[i] + dda->step_interval[i] - move_state.last_time;
if (c_candidate < dda->c) {
dda->axis_to_step = i;
dda->c = c_candidate;

2
dda.h
View File

@ -72,7 +72,7 @@ typedef struct {
#endif
#ifdef ACCELERATION_TEMPORAL
axes_uint32_t time; ///< time of the last step on each axis
uint32_t all_time; ///< time of the last step of any axis
uint32_t last_time; ///< time of the last step of any axis
#endif
/// Endstop handling.