stepper.h bug ? setspeed = 0 ?


this is maybe a bug.

i want to use a potmeter to adjust the SPEED of a steppermotor.

so the analog value (0-255) is used as parameter of the setspeed method.

if analog value on potmeter = 0
then the setspeed = 0
and when myStepper.step is invoked , then the arduino is in a endless loop.

myStepper.step(1); // make 2 revolutions