From c1bebae5285b63a6e00a0b24aab6833cb07c54a8 Mon Sep 17 00:00:00 2001 From: Riccardo Tornesello Date: Thu, 15 Aug 2024 10:46:03 +0200 Subject: [PATCH] fix bitfield --- telemetry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telemetry.go b/telemetry.go index aa1c899..e63a7d2 100644 --- a/telemetry.go +++ b/telemetry.go @@ -88,7 +88,7 @@ func (v TelemetryVar) Array() interface{} { } return arr case VarTypeBitField: - arr := make([]string, v.Header.Count) + arr := make([]uint32, v.Header.Count) for i := 0; i < v.Header.Count; i++ { arr[i] = Byte4toBitField(v.RawValue[i*4 : (i+1)*4]) }