just use marshal methods directly

This commit is contained in:
Joel Wetzell
2026-02-08 20:37:30 -06:00
parent f63b8886ce
commit 744817ec17
6 changed files with 33 additions and 41 deletions
-12
View File
@@ -19,18 +19,6 @@ type ArtDmx struct {
Data []uint8
}
func NewArtDmx(data []byte) (*ArtDmx, error) {
artDmx := ArtDmx{}
err := artDmx.UnmarshalBinary(data)
if err != nil {
return nil, err
}
return &artDmx, nil
}
func (ad *ArtDmx) GetOpCode() uint16 {
return ad.OpCode
}