Skip to content
Permalink
Browse files

fix ACCELERATION_REPRAP build (moved/extra vars)

REPRAP style acceleration broke quite a while ago, but no one noticed.
Maybe it's not being used, and therefore also not tested. But it should
at least compile while it remains an option.

The compiler complains that dda->n is not defined and that current_id is
never used.  The first bug goes back to f0b9dae in late 2013.

In the interest of supporting exploratory accelerations, fix this to
build when ACCELERATION_REPRAP is chosen.
  • Loading branch information...
phord committed Jun 22, 2016
1 parent c3f0d05 commit 803ff6e8b3827809e0f04067e8e27c309b9fbf85
Showing with 2 additions and 1 deletion.
  1. +1 −1 dda.c
  2. +1 −0 dda.h
2 dda.c
@@ -756,8 +756,8 @@ void dda_clock() {
uint32_t move_step_no, move_c;
int32_t move_n;
uint8_t recalc_speed;
#endif
uint8_t current_id ;
#endif

dda = queue_current_movement();
if (dda != last_dda) {
1 dda.h
@@ -119,6 +119,7 @@ typedef struct {

#ifdef ACCELERATION_REPRAP
uint32_t end_c; ///< time between 2nd last step and last step
int32_t n; ///< precalculated step time offset variable
#endif
#ifdef ACCELERATION_RAMPING
/// precalculated step time offset variable

0 comments on commit 803ff6e

Please sign in to comment.
You can’t perform that action at this time.