Made line number reporting optional via config.h

This commit is contained in:
Robert Grzesek
2014-02-06 15:19:30 -08:00
parent 6fdb35a7da
commit cd71a90ce8
4 changed files with 15 additions and 3 deletions

View File

@ -280,8 +280,9 @@ void plan_buffer_line(float *target, float feed_rate, uint8_t invert_feed_rate,
block->millimeters = 0;
block->direction_bits = 0;
block->acceleration = SOME_LARGE_VALUE; // Scaled down to maximum acceleration later
#ifdef USE_LINE_NUMBERS
block->line_number = line_number;
#endif
// Compute and store initial move distance data.
// TODO: After this for-loop, we don't touch the stepper algorithm data. Might be a good idea
// to try to keep these types of things completely separate from the planner for portability.