Added sleep to stop to make sure at least one poll happens and EPCIS knows the motor is moving

This commit is contained in:
2025-07-29 09:44:26 +02:00
parent 949e9faef3
commit fd2afa9ec6

View File

@@ -863,7 +863,6 @@ asynStatus turboPmacAxis::stop(double acceleration) {
done, this thread (which also runs move commands) is paused for twice the
idle poll period.
*/
pC_->forcedFastPolls();
unsigned int idlePollMicros =
(unsigned int)ceil(pC_->idlePollPeriod() * 1e6);
usleep(2 * idlePollMicros);