From 6a9c626fd483c6c09ef8b9a55ef4b5227a429003 Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Wed, 5 May 2021 23:15:25 +0200 Subject: [PATCH] Encode full display command --- uncanny/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncanny/message.go b/uncanny/message.go index 31a20f4..7cd4dcb 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: 1, + Length: length + 1, Data: data, } }