*
* \author Francesco Michelini <francesco.michelini@seacfi.com>
* \author Giovanni Bajo <rasky@develer.com>
- * \author Bernardo Innocenti <bernie@develer.com>
+ * \author Bernie Innocenti <bernie@codewiz.org>
* \author Simone Zinanni <s.zinanni@develer.com>
* \author Daniele Basile <asterix@develer.com>
*/
//motor->rampValue = 0;
//motor->rampClock = motor->rampValue = motor->ramp->clocksMaxWL;
- else if (distance <= motor->rampStep)
+ else if (distance <= (uint16_t)motor->rampStep)
stepper_decel(motor);
// check whether the velocity must be changed