fixed z-disable bug.

This commit is contained in:
Erik van der Zalm
2012-02-05 21:14:55 +01:00
parent 9f139d6e0e
commit abb7e63906
2 changed files with 6 additions and 5 deletions

View File

@ -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