fix wrong call and missing send set
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package models
|
||||
|
||||
import "sync"
|
||||
import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
type DMX struct {
|
||||
Data []byte
|
||||
@@ -17,7 +19,7 @@ func (d *DMX) GetDMXData() (data []byte) {
|
||||
d.mu.Lock()
|
||||
data = d.Data
|
||||
d.mu.Unlock()
|
||||
return data
|
||||
return
|
||||
}
|
||||
|
||||
func (d *DMX) SetValue(channel uint, value uint8) {
|
||||
|
Reference in New Issue
Block a user