|
@@ -100,8 +100,8 @@ Planner planner;
|
100
|
100
|
* A ring buffer of moves described in steps
|
101
|
101
|
*/
|
102
|
102
|
block_t Planner::block_buffer[BLOCK_BUFFER_SIZE];
|
103
|
|
-volatile uint8_t Planner::block_buffer_head = 0, // Index of the next block to be pushed
|
104
|
|
- Planner::block_buffer_tail = 0;
|
|
103
|
+volatile uint8_t Planner::block_buffer_head, // Index of the next block to be pushed
|
|
104
|
+ Planner::block_buffer_tail;
|
105
|
105
|
|
106
|
106
|
float Planner::max_feedrate_mm_s[XYZE_N], // Max speeds in mm per second
|
107
|
107
|
Planner::axis_steps_per_mm[XYZE_N],
|
|
@@ -207,7 +207,6 @@ float Planner::previous_speed[NUM_AXIS],
|
207
|
207
|
Planner::Planner() { init(); }
|
208
|
208
|
|
209
|
209
|
void Planner::init() {
|
210
|
|
- block_buffer_head = block_buffer_tail = 0;
|
211
|
210
|
ZERO(position);
|
212
|
211
|
#if HAS_POSITION_FLOAT
|
213
|
212
|
ZERO(position_float);
|
|
@@ -217,6 +216,7 @@ void Planner::init() {
|
217
|
216
|
#if ABL_PLANAR
|
218
|
217
|
bed_level_matrix.set_to_identity();
|
219
|
218
|
#endif
|
|
219
|
+ clear_block_buffer();
|
220
|
220
|
}
|
221
|
221
|
|
222
|
222
|
#if ENABLED(BEZIER_JERK_CONTROL)
|