first commit of files
This commit is contained in:
13
server/set.go
Normal file
13
server/set.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"artNet/models"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func (s *Server) Set(get models.Get) error {
|
||||
if len(s.Driver.Bus) <= int(get.Bus) {
|
||||
return fmt.Errorf("no bus number '%d' found", get.Bus)
|
||||
}
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user