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