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
@@ -23,18 +23,6 @@ type ArtPoll struct {
OemLo uint8
}
func NewArtPoll(data []byte) (*ArtPoll, error) {
artPoll := ArtPoll{}
err := artPoll.UnmarshalBinary(data)
if err != nil {
return nil, err
}
return &artPoll, nil
}
func (ap *ArtPoll) GetOpCode() uint16 {
return ap.OpCode
}