Skip to content

Do not allow new movements of motor if already moving

Marcus Oskarsson requested to merge gh-98bb22d9/301/bolmsten/master into master

Created by: bolmsten

When using the scroll function to move motors it is possible to send hundreds of calls in a matter of seconds.

In this PR I attempt to limit this by setting a motor to moving before making the server request and checking if that motor is in ready state before allowing a new request.

This check should also be done in the server, that could return a 409 or something if a movement is active.

Merge request reports