We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the EnableNotifications functions, there is no check to see if the callback passed is already on the list. For example, if you do:
EnableNotifications
c.EnableNotifications(notification_callback) c.EnableNotifications(notification_callback)
the notification_callback function will run twice for each notification.
notification_callback
The callback is also not removed from the list when nil is passed as the callback, the code just sets the attribute to [0x00, 0x00]. For example:
nil
c.EnableNotifications(notification_callback) c.EnableNotifications(nil) c.EnableNotifications(notification_callback)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the
EnableNotifications
functions, there is no check to see if the callback passed is already on the list. For example, if you do:the
notification_callback
function will run twice for each notification.The callback is also not removed from the list when
nil
is passed as the callback, the code just sets the attribute to [0x00, 0x00]. For example:the
notification_callback
function will run twice for each notification.The text was updated successfully, but these errors were encountered: