Skip to content
Snippets Groups Projects
Commit f5403ad4 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Fix multiple main warning

parent 50eb5429
No related branches found
No related tags found
No related merge requests found
//go:build ignore
// This application is a very simple example on how to use the xAAL library. // This application is a very simple example on how to use the xAAL library.
// It is a chandelier with 6 dimming lamps. // It is a chandelier with 6 dimming lamps.
...@@ -81,7 +83,7 @@ func (lamp *Lamp) setBrightness(args xaal.MessageBody) *xaal.MessageBody { ...@@ -81,7 +83,7 @@ func (lamp *Lamp) setBrightness(args xaal.MessageBody) *xaal.MessageBody {
} }
// used to make it blink w/ a goroutine // used to make it blink w/ a goroutine
func (lamp *Lamp) blink(args xaal.MessageBody) *xaal.MessageBody { func (lamp *Lamp) blink(xaal.MessageBody) *xaal.MessageBody {
for { for {
lamp.toggle(nil) lamp.toggle(nil)
time.Sleep(time.Second * 3) time.Sleep(time.Second * 3)
......
//go:build ignore
package main package main
import ( import (
......
//go:build ignore
package main package main
import ( import (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment