fixed z-disable bug.
This commit is contained in:
parent
9f139d6e0e
commit
abb7e63906
2 changed files with 6 additions and 5 deletions
|
|
@ -274,7 +274,8 @@ FORCE_INLINE void trapezoid_generator_reset() {
|
|||
acceleration_time = calc_timer(acc_step_rate);
|
||||
OCR1A = acceleration_time;
|
||||
OCR1A_nominal = calc_timer(current_block->nominal_rate);
|
||||
#ifdef Z_LATE_ENABLE
|
||||
|
||||
#ifdef Z_LATE_ENABLE
|
||||
if(current_block->steps_z > 0) enable_z();
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue