dda_lookahead.c: Eliminate debug crossF variable compile warning.
Fix:
dda_lookahead.c:327:17: warning: 'crossF' may be used
uninitialized in this function [-Wmaybe-uninitialized]
sersendf_P(PSTR("Initial crossing speed: %lu\n"), crossF);
^
This commit is contained in:
parent
2496a95c6f
commit
5b5c44b523
|
|
@ -324,7 +324,7 @@ void dda_join_moves(DDA *prev, DDA *current) {
|
||||||
|
|
||||||
// Show the proposed crossing speed - this might get adjusted below.
|
// Show the proposed crossing speed - this might get adjusted below.
|
||||||
if (DEBUG_DDA && (debug_flags & DEBUG_DDA))
|
if (DEBUG_DDA && (debug_flags & DEBUG_DDA))
|
||||||
sersendf_P(PSTR("Initial crossing speed: %lu\n"), crossF);
|
sersendf_P(PSTR("Initial crossing speed: %lu\n"), current->crossF);
|
||||||
|
|
||||||
// Make sure we have 2 moves and the previous move is not already active
|
// Make sure we have 2 moves and the previous move is not already active
|
||||||
if (prev->live == 0) {
|
if (prev->live == 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue