Encode full display command

This commit is contained in:
Gregor Riepl 2021-05-05 23:15:25 +02:00
parent 11a0f85c9f
commit 6a9c626fd4

View file

@ -355,7 +355,7 @@ func (f DisplayCommand) Encode() can.Frame {
copy(data[1:], f.Data[:length])
return can.Frame{
ID: uint32(C.can_msg_display_cmd),
Length: 1,
Length: length + 1,
Data: data,
}
}