fix faulty data send to artNet with new chan queue

This commit is contained in:
Adrian Zuercher
2025-07-13 19:56:00 +02:00
parent 258323f5b7
commit 76a036707f
4 changed files with 43 additions and 24 deletions

View File

@@ -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
}