mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 20:18:52 +00:00
Fully init planner sync_block
This commit is contained in:
parent
1f991f07be
commit
156bd28160
@ -1470,12 +1470,29 @@ void Planner::buffer_sync_block() {
|
||||
uint8_t next_buffer_head;
|
||||
block_t * const block = get_next_free_block(next_buffer_head);
|
||||
|
||||
block->flag = BLOCK_FLAG_SYNC_POSITION;
|
||||
|
||||
block->steps[A_AXIS] = position[A_AXIS];
|
||||
block->steps[B_AXIS] = position[B_AXIS];
|
||||
block->steps[C_AXIS] = position[C_AXIS];
|
||||
block->steps[E_AXIS] = position[E_AXIS];
|
||||
|
||||
block->flag = BLOCK_FLAG_SYNC_POSITION;
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
block->use_advance_lead = false;
|
||||
#endif
|
||||
|
||||
block->nominal_speed =
|
||||
block->entry_speed =
|
||||
block->max_entry_speed =
|
||||
block->millimeters =
|
||||
block->acceleration = 0;
|
||||
|
||||
block->step_event_count =
|
||||
block->nominal_rate =
|
||||
block->initial_rate =
|
||||
block->final_rate =
|
||||
block->acceleration_steps_per_s2 =
|
||||
block->segment_time_us = 0;
|
||||
|
||||
block_buffer_head = next_buffer_head;
|
||||
stepper.wake_up();
|
||||
|
Loading…
Reference in New Issue
Block a user