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

Fix start without reset #320

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

paulianttila
Copy link

@paulianttila paulianttila commented Apr 6, 2021

Bluegiga chip might be in scan mode and send scan result to the host during start. If system reset is denied, start might fail for disable_advertising method with high probability, because of huge mount of scan results received.

This PR fix this issue.

  1. If system reset is denied, gap_end_procedure will be send to stop possible scan (no response is expected)
  2. After a delay, input buffer is cleared for possible scan results.
  3. Serial port receiver is started.

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