mirror of
https://github.com/jwetzell/artnet-go.git
synced 2026-09-10 07:49:28 +00:00
rework byte array calculation in marshal functions
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ func (aipr *ArtIpProgReply) UnmarshalBinary(data []byte) error {
|
||||
}
|
||||
|
||||
func (aipr *ArtIpProgReply) MarshalBinary() ([]byte, error) {
|
||||
data := make([]byte, 8+26)
|
||||
data := make([]byte, 12+22)
|
||||
copy(data[0:8], ArtNetID[:])
|
||||
binary.LittleEndian.PutUint16(data[8:10], OpIpProgReply)
|
||||
data[10] = 0
|
||||
|
||||
Reference in New Issue
Block a user