Closed daniel-frenkel closed 1 year ago
That's strange. Which µC are you using ?
What is the return value of stepper->moveTo(1000);
?
ESP32
Here's the code:
uint16_t set_pos = stepper->moveTo(10000);
printf("set_pos: %i\n", set_pos);
Output:
set_pos: 0
Good that 0.28.4 works for you.
I have downgraded to 0.28.4 and I cannot reproduce this problem. Can you please provide more details ?
comment to this:
stepper->moveTo(1000);
Serial.println(stepper->targetPos());
The targetPos() is now updated by the stepper task, which may take up to 4ms to update the value returned by targetPos().
I switched over to Platformio and everything is working as expected so I'm not sure what was wrong. I'll close this
I recently upgraded from V0.28.4 to V0.29.2 and it no longer works.
I have not changed any other code, just the version.
When setting the move or moveTo function, the position always remains at 0.
Running the following code prints out a value of 0 and the motor does not begin to move.
Downgrading to V28.4 works as expected.