Forgot typecast

This commit is contained in:
Gregor Riepl 2021-05-05 23:16:42 +02:00
parent 6a9c626fd4
commit f07440429a

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: length + 1,
Length: uint8(length + 1),
Data: data,
}
}