Forgot typecast
This commit is contained in:
parent
6a9c626fd4
commit
f07440429a
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ func (f DisplayCommand) Encode() can.Frame {
|
||||||
copy(data[1:], f.Data[:length])
|
copy(data[1:], f.Data[:length])
|
||||||
return can.Frame{
|
return can.Frame{
|
||||||
ID: uint32(C.can_msg_display_cmd),
|
ID: uint32(C.can_msg_display_cmd),
|
||||||
Length: length + 1,
|
Length: uint8(length + 1),
|
||||||
Data: data,
|
Data: data,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue