Skip to content

Commit

Permalink
Merge pull request #49 from rkjdid/fix-stop-advertise
Browse files Browse the repository at this point in the history
linux.hci: fix stop advertise on new connection
  • Loading branch information
estutzenberger authored Jan 10, 2020
2 parents 0105c68 + 5328f95 commit 67ae735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/hci/hci.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ func (h *HCI) handleLEConnectionComplete(b []byte) error {
// So we also re-enable the advertising when a connection disconnected
h.params.RLock()
if h.params.advEnable.AdvertisingEnable == 1 {
go h.Send(&h.params.advEnable, nil)
go h.Send(&cmd.LESetAdvertiseEnable{0}, nil)
}
h.params.RUnlock()
}
Expand Down

0 comments on commit 67ae735

Please sign in to comment.