Don't set the timer on nullmoves, as dda->c isn't initialized, then.

This commit is contained in:
Markus Hitter 2010-09-30 21:19:09 +02:00
parent 4617b5e87d
commit 94e0cce89b
1 changed files with 4 additions and 3 deletions

7
dda.c
View File

@ -307,6 +307,7 @@ void dda_start(DDA *dda) {
if (dda->nullmove) {
// just change speed?
current_position.F = dda->endpoint.F;
// keep dda->live = 0
}
else {
if (dda->waitfor_temp) {
@ -326,10 +327,10 @@ void dda_start(DDA *dda) {
// ensure this dda starts
dda->live = 1;
}
// set timeout for first step
setTimer(dda->c >> 8);
// set timeout for first step
setTimer(dda->c >> 8);
}
}
/*