fix faulty data send to artNet with new chan queue
This commit is contained in:
@@ -8,10 +8,12 @@ func (d *ArtNetDriver) Publish(pubs ...json_dataModels.Publish) error {
|
||||
if d.Subscriptions == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
for _, pub := range pubs {
|
||||
if drv, ok := (d.Subscriptions)[pub.Uuid]; ok {
|
||||
d.SetValue(drv.Bus, drv.Address, uint8(pub.Value.(float64)))
|
||||
}
|
||||
}
|
||||
d.SendData()
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user