add shure slp discovery and comma-separate group member lists

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-23 09:47:51 -08:00
parent 6394b55191
commit c7db24b1fd
5 changed files with 149 additions and 4 deletions

View File

@@ -348,16 +348,16 @@ func (a *ArtNetNodes) LogAll() {
var parts []string
if len(ins) > 0 {
sort.Slice(ins, func(i, j int) bool { return sortorder.NaturalLess(ins[i], ins[j]) })
parts = append(parts, fmt.Sprintf("in:%v", ins))
parts = append(parts, fmt.Sprintf("in: %s", strings.Join(ins, ", ")))
}
if len(outs) > 0 {
sort.Slice(outs, func(i, j int) bool { return sortorder.NaturalLess(outs[i], outs[j]) })
parts = append(parts, fmt.Sprintf("out:%v", outs))
parts = append(parts, fmt.Sprintf("out: %s", strings.Join(outs, ", ")))
}
net := (u >> 8) & 0x7f
subnet := (u >> 4) & 0x0f
universe := u & 0x0f
log.Printf("[sigusr1] artnet:%d (%d/%d/%d) %s", u, net, subnet, universe, strings.Join(parts, " "))
log.Printf("[sigusr1] artnet:%d (%d/%d/%d) %s", u, net, subnet, universe, strings.Join(parts, "; "))
}
}