add tod control packet

This commit is contained in:
Joel Wetzell
2026-05-30 09:06:07 -05:00
parent c44996dd32
commit 91206f6037
3 changed files with 128 additions and 0 deletions
+10
View File
@@ -185,6 +185,16 @@ func Decode(bytes []byte) (ArtNetPacket, error) {
}
return &artTodRequest, nil
case OpTodControl:
artTodControl := ArtTodControl{}
err := artTodControl.UnmarshalBinary(bytes)
if err != nil {
return nil, err
}
return &artTodControl, nil
default:
return nil, fmt.Errorf("unhandled opcode: %#x", opCode)
}