mirror of
https://github.com/jwetzell/artnet-go.git
synced 2026-09-05 05:29:03 +00:00
actually set ID of packet structs
This commit is contained in:
@@ -48,7 +48,9 @@ func (ad *ArtDmx) UnmarshalBinary(data []byte) error {
|
||||
return errors.New("ArtDmx packet must be at least 18 bytes long")
|
||||
}
|
||||
|
||||
if !slices.Equal(ArtNetID, data[0:8]) {
|
||||
ad.ID = data[0:8]
|
||||
|
||||
if !slices.Equal(ArtNetID, ad.ID) {
|
||||
return errors.New("ID does not match Art-Net ID")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user