diff --git a/rfm69d/rfm69d.go b/rfm69d/rfm69d.go index a3b78a3..318bd95 100644 --- a/rfm69d/rfm69d.go +++ b/rfm69d/rfm69d.go @@ -3,6 +3,7 @@ package main import ( "log" "os" + "os/signal" "github.com/fulr/rfm69" "github.com/kidoman/embd" @@ -44,7 +45,7 @@ func main() { quit := rfm.Loop() sigint := make(chan os.Signal) - os.Notify(sigint, os.Interrupt) + signal.Notify(sigint, os.Interrupt) <-sigint