Skip to content

Fix start without reset#320

Open
paulianttila wants to merge 2 commits intopeplin:masterfrom
paulianttila:fix-start-without-reset
Open

Fix start without reset#320
paulianttila wants to merge 2 commits intopeplin:masterfrom
paulianttila:fix-start-without-reset

Conversation

@paulianttila
Copy link
Copy Markdown

@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