Remove ArtNet RDM/TOD discovery support

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-31 10:57:11 -08:00
parent 61e3c905b0
commit d14de5950e
5 changed files with 6 additions and 35 deletions

View File

@@ -28,9 +28,6 @@ func (h *artnetHandler) HandlePollReply(src *net.UDPAddr, pkt *artnet.PollReplyP
h.discovery.HandlePollReply(src, pkt)
}
func (h *artnetHandler) HandleTodData(src *net.UDPAddr, pkt *artnet.TodDataPacket) {
h.discovery.HandleTodData(src, pkt)
}
func (t *Tendrils) startArtNet(ctx context.Context, iface net.Interface) {
srcIP, broadcast := getInterfaceIPv4(iface)
@@ -83,19 +80,8 @@ func (t *Tendrils) handleArtNetNode(node *artnet.Node) {
outputs = append(outputs, int(u))
}
rdmUIDs := map[int][]string{}
for u, uids := range node.RDMUIDs {
var uidStrs []string
for _, uid := range uids {
uidStrs = append(uidStrs, uid.String())
}
if len(uidStrs) > 0 {
rdmUIDs[int(u)] = uidStrs
}
}
if t.DebugArtNet {
log.Printf("[artnet] %s %s short=%q long=%q in=%v out=%v rdm=%v", ip, mac, shortName, longName, inputs, outputs, rdmUIDs)
log.Printf("[artnet] %s %s short=%q long=%q in=%v out=%v", ip, mac, shortName, longName, inputs, outputs)
}
name := longName
@@ -115,7 +101,6 @@ func (t *Tendrils) handleArtNetNode(node *artnet.Node) {
}
if n != nil {
t.nodes.UpdateArtNet(n, inputs, outputs)
t.nodes.UpdateArtNetRDM(n, rdmUIDs)
}
t.NotifyUpdate()
}
@@ -139,22 +124,6 @@ func (n *Nodes) UpdateArtNet(node *Node, inputs, outputs []int) {
}
}
func (n *Nodes) UpdateArtNetRDM(node *Node, rdmUIDs map[int][]string) {
n.mu.Lock()
defer n.mu.Unlock()
if len(rdmUIDs) == 0 {
return
}
if node.ArtNetRDMUIDs == nil {
node.ArtNetRDMUIDs = map[int][]string{}
}
for u, uids := range rdmUIDs {
node.ArtNetRDMUIDs[u] = uids
}
}
func (n *Nodes) expireArtNet() {
for _, node := range n.nodes {