From e976f2bdf31c5862a3b8e68afd987f93a614faf3 Mon Sep 17 00:00:00 2001 From: Nico Tonnhofer Date: Thu, 20 Jul 2017 21:22:33 +0200 Subject: [PATCH] dda.c: c0_P is only for ACCELERATION_RAMPING dda.c:65:35: error: 'c0_P' defined but not used [-Werror=unused-const-variable=] --- dda.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dda.c b/dda.c index 9a1498b..cdd3719 100644 --- a/dda.c +++ b/dda.c @@ -58,6 +58,7 @@ static const axes_uint32_t PROGMEM maximum_feedrate_P = { MAXIMUM_FEEDRATE_E }; +#ifdef ACCELERATION_RAMPING /// \var c0_P /// \brief Initialization constant for the ramping algorithm. Timer cycles for /// 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_E * ACCELERATION / 2000.)) }; +#endif /*! Set the direction of the 'n' axis */