1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-24 13:48:49 +08:00

Work is optional

This commit is contained in:
Adrian Zankich 2013-12-03 15:51:17 -08:00
parent 60abbf8c2a
commit 0871811cc4

View File

@ -25,7 +25,9 @@ func (r *Robot) Start() {
r.initDevices()
r.startConnections()
r.startDevices()
r.Work()
if r.Work != nil {
r.Work()
}
select {}
}