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

Return the number of bytes written from all mouse commands #76

Merged
merged 1 commit into from
Feb 18, 2019
Merged

Return the number of bytes written from all mouse commands #76

merged 1 commit into from
Feb 18, 2019

Conversation

Demon000
Copy link
Contributor

This would be useful to check if the command was actually completed successfully.

@Demon000
Copy link
Contributor Author

We could also throw an exception on failure but that might break stuff for some people I guess.

@Demon000
Copy link
Contributor Author

Demon000 commented Feb 18, 2019

I'm using this like this https://github.com/Demon000/rivalcolor/blob/bc73d4e16e93d5a24db6bfecfdd2fba301c4e663/rival.py#L82 to make sure that the command was successful and try to reconnect to the mouse if not.

@flozz flozz merged commit 5af0c2d into flozz:master Feb 18, 2019
@flozz
Copy link
Owner

flozz commented Feb 18, 2019

Hi, it is ok for me to return the written bytes count, thank you :)

@Demon000 Demon000 deleted the bytes-written branch February 18, 2019 17:10
@Demon000
Copy link
Contributor Author

Thanks a lot.

@flozz
Copy link
Owner

flozz commented Feb 18, 2019

→ Released in rivalcfg 3.6.0 :)

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.

2 participants