Don't set the timer on nullmoves, as dda->c isn't initialized, then.
This commit is contained in:
parent
4617b5e87d
commit
94e0cce89b
7
dda.c
7
dda.c
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue