Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"flag"
"log"
"sync"

"github.com/currantlabs/ble/linux"
)
Expand Down Expand Up @@ -45,7 +46,10 @@ func main() {
}

// Loop forever while notification handler respond
wg := sync.WaitGroup{}
wg.Add(1)
for {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now loop is redundant

wg.Wait()
}

// for _, device := range config.Devices {
Expand Down