Rename myself
[bertos.git] / bertos / drv / stepper.c
index 57ac7fc4057a5b010ca9d25e38f147790bcef230..6614623d409b676b6ea3d8731bf90c11bbd4e4de 100644 (file)
@@ -11,7 +11,7 @@
  *
  * \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>
  */
@@ -313,7 +313,7 @@ static enum StepperState FAST_FUNC FSM_run(struct Stepper *motor)
                //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