removed that horrible offset when accessing telemetrydata values

This commit is contained in:
2026-03-10 15:31:46 +00:00
parent 19c2ac2d07
commit 0228e93bbf
4 changed files with 13 additions and 23 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ func (sc *StreamingCtrl) SetInternalState() {
fields := make([]telemetry.FieldID, 0, len(sc.Service.CDash.State.Layout.Windows))
for _, w := range sc.Service.CDash.State.Layout.Windows {
fieldID, _ := telemetry.GetFieldID(w.UIData.TelemetryField)
fields = append(fields, fieldID-telemetry.FirstField)
fields = append(fields, fieldID)
}
sc.TelemServ.ActiveProvider.Subscribe(fields)