Skip to content

Conversation

@juliansteenbakker
Copy link
Contributor

Due to mLastProgress defaulting to -1 (STATE_CONNECTING) and a chec mLastProgress == progress, the callback onDeviceConnecting is never called. By changing the default to -0 (STATE_DISCONNECTED), the update is passed through.

By adding progress >= 0 && progress <= 100 to the check, we can keep track of the retries that have passed.

Lastly, STATE_DISCONNECTING was never set, so i've added this in the corresponding block.

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.

1 participant