mirror of
https://github.com/jwetzell/artnet-go.git
synced 2026-09-11 08:19:28 +00:00
add tod control packet
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user