Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interrupt movement routine when desk stops moving #352

Merged
merged 2 commits into from
Oct 8, 2023

Conversation

abmantis
Copy link
Contributor

@abmantis abmantis commented Oct 7, 2023

If the desk button is pressed while the desk is being moved from the library, the desk
stops. Without this change the lib will keep sending movement commands and the desk
would not be controllable anymore, until those commands are interrupted.

This change makes it so that the lib automatically detects that movement has seized
and so stops sending commands.

@coveralls
Copy link

coveralls commented Oct 7, 2023

Coverage Status

coverage: 88.122% (+0.2%) from 87.887% when pulling 2ebe02a on abmantis:stop_move_on_button_press into 7b286e4 on newAM:main.

@abmantis abmantis marked this pull request as ready for review October 7, 2023 23:56
Copy link
Owner

@newAM newAM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the PR!

Just one small type hint change.

idasen/__init__.py Outdated Show resolved Hide resolved
Co-authored-by: Alex Martens <alex@thinglab.org>
@abmantis abmantis requested a review from newAM October 8, 2023 20:31
@newAM newAM merged commit f978346 into newAM:main Oct 8, 2023
17 checks passed
@newAM
Copy link
Owner

newAM commented Oct 8, 2023

Included in https://github.com/newAM/idasen/releases/tag/v0.10.3

@abmantis
Copy link
Contributor Author

abmantis commented Oct 8, 2023

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants