change send data to dmx as 23 millisecond ticker when new data
This commit is contained in:
@@ -141,9 +141,6 @@ func (d *ArtNetDriver) Connect(ip, id string, port uint) error {
|
||||
// send data to all buses that the send flage is true
|
||||
func (d *ArtNetDriver) SendData() {
|
||||
for _, bus := range d.Buses {
|
||||
if !bus.Reachable {
|
||||
continue
|
||||
}
|
||||
bus.Send <- bus.Data
|
||||
bus.Send = bus.Reachable
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user