add tod request and tests from ACT

This commit is contained in:
Joel Wetzell
2026-05-30 07:13:09 -05:00
parent 5869f308a3
commit eec90ba0c1
3 changed files with 381 additions and 0 deletions
+10
View File
@@ -155,6 +155,16 @@ func Decode(bytes []byte) (ArtNetPacket, error) {
}
return &artSync, nil
case OpTodRequest:
artTodRequest := ArtTodRequest{}
err := artTodRequest.UnmarshalBinary(bytes)
if err != nil {
return nil, err
}
return &artTodRequest, nil
default:
return nil, fmt.Errorf("unhandled opcode: %#x", opCode)
}