Skip to content

Commit

Permalink
Merge pull request ARMmbed#26 from hybridgroup/bugfix/issue-11
Browse files Browse the repository at this point in the history
Correct ARMmbed#11 by reseting the hci device during initialization
  • Loading branch information
roylee17 authored Jan 14, 2017
2 parents 4eb2faa + 268b629 commit 3b91027
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions linux/hci/hci.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ func (h *HCI) Option(opts ...Option) error {
}

func (h *HCI) init() error {
h.Send(&cmd.Reset{}, nil)

ReadBDADDRRP := cmd.ReadBDADDRRP{}
h.Send(&cmd.ReadBDADDR{}, &ReadBDADDRRP)

Expand Down

0 comments on commit 3b91027

Please sign in to comment.