-
Notifications
You must be signed in to change notification settings - Fork 19
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
Re-setting notifications for sensor fusion module #53
Comments
Looks like the only problem is in the exception itself, i.e. commenting these lines out doesn't do any visible harm: pymetawear/pymetawear/modules/base.py Lines 139 to 141 in ef88fc2
|
I wanted to keep the notifications method as similar to the other modules as possible, but it breaks possibility to handle the different signals separately. I will have to restructure this I guess. I am a bit perplexed by the There was an abyssmal error in the error message as well: |
I just checked again: actually the error has nothing to do with the Sensor Fusion... Sorry for the false alarm! In fact the error comes from enabling battery notifications twice (which is also a bit of an issue). While working on the PR #54 I noticed Perhaps it would be good to use the logic of |
Description
I would like to selectively enable/disable notifications for the Sensor Fusion module, but with the current API / implementation it seems impossible.
What I Did
The second call to
sensorfusion.notifications()
results in exception:Obviously, if I omit the other two callback parameters the respective callbacks would be also disabled.
Is there a way to selectively enable/disable these notifications?
Thanks!
The text was updated successfully, but these errors were encountered: