dda.c: c0_P is only for ACCELERATION_RAMPING

dda.c:65:35: error: 'c0_P' defined but not used [-Werror=unused-const-variable=]
This commit is contained in:
Nico Tonnhofer 2017-07-20 21:22:33 +02:00
parent f4d1a6a33b
commit e976f2bdf3
1 changed files with 2 additions and 0 deletions

2
dda.c
View File

@ -58,6 +58,7 @@ static const axes_uint32_t PROGMEM maximum_feedrate_P = {
MAXIMUM_FEEDRATE_E MAXIMUM_FEEDRATE_E
}; };
#ifdef ACCELERATION_RAMPING
/// \var c0_P /// \var c0_P
/// \brief Initialization constant for the ramping algorithm. Timer cycles for /// \brief Initialization constant for the ramping algorithm. Timer cycles for
/// first step interval. /// first step interval.
@ -67,6 +68,7 @@ static const axes_uint32_t PROGMEM c0_P = {
(uint32_t)((double)F_CPU / SQRT((double)STEPS_PER_M_Z * ACCELERATION / 2000.)), (uint32_t)((double)F_CPU / SQRT((double)STEPS_PER_M_Z * ACCELERATION / 2000.)),
(uint32_t)((double)F_CPU / SQRT((double)STEPS_PER_M_E * ACCELERATION / 2000.)) (uint32_t)((double)F_CPU / SQRT((double)STEPS_PER_M_E * ACCELERATION / 2000.))
}; };
#endif
/*! Set the direction of the 'n' axis /*! Set the direction of the 'n' axis
*/ */