Skip to content
Snippets Groups Projects
Commit 0f0bf538 authored by jkerdreu's avatar jkerdreu
Browse files

- Added Engine.Run()

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Go/trunk/xaal-lib/apps@3120 b32b6428-25c9-4566-ad07-03861ab6144f
parent 114685ec
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,6 @@
package main
import (
"fmt"
"os"
"os/signal"
xAALLib "xAAL/lib"
"github.com/google/uuid"
......@@ -67,10 +63,5 @@ func main() {
eng.AddDevice(l.dev)
}
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
<-c
fmt.Println("Exiting")
eng.Stop()
eng.Run()
}
......@@ -2,8 +2,6 @@ package main
import (
"fmt"
"os"
"os/signal"
xAALLib "xAAL/lib"
)
......@@ -21,11 +19,5 @@ func main() {
eng.Start()
eng.Subscribe(showMessage)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
<-c
fmt.Println("Exiting")
eng.Stop()
eng.Run()
}
package main
import (
"fmt"
"os"
"os/signal"
xAALLib "xAAL/lib"
"github.com/google/uuid"
......@@ -63,10 +59,5 @@ func main() {
lamp.Dump()
eng.AddDevice(lamp)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
<-c
fmt.Println("Exiting")
eng.Stop()
eng.Run()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment