From f07440429ad53084e83dc4700ecf2d588f268975 Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Wed, 5 May 2021 23:16:42 +0200 Subject: [PATCH] Forgot typecast --- uncanny/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncanny/message.go b/uncanny/message.go index 7cd4dcb..0c2ecdd 100644 --- a/uncanny/message.go +++ b/uncanny/message.go @@ -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, } }