corrected speed calculation in planner (untested on hardware)

This commit is contained in:
Simen Svale Skogsrud
2011-02-10 23:48:17 +01:00
parent fb5db05b6d
commit fc1c1b7e09
2 changed files with 16 additions and 20 deletions

View File

@@ -101,7 +101,7 @@ inline void trapezoid_generator_tick() {
// rounding errors that might leave steps hanging after the last trapezoid tick.
if(current_block->rate_delta < trapezoid_adjusted_rate) {
trapezoid_adjusted_rate -= current_block->rate_delta;
}
}
set_step_events_per_minute(trapezoid_adjusted_rate);
}
}