and yet again some more fields

This commit is contained in:
2026-03-15 22:55:11 +00:00
parent e5bd5b8983
commit c512d79d98
5 changed files with 216 additions and 129 deletions
+5 -4
View File
@@ -216,10 +216,11 @@ func (i *IRacing) Subscribe(requestFields map[int16]telem.FieldID) {
out.Str = strconv.FormatFloat(v.(float64), 'f', 1, 32)
}
case telem.Empty:
binding.Transform = func(v any, out *telem.TelemetryField) {
out.Type = telem.DataTypeCHAR
out.Raw = uint64('-')
}
binding.Transform = EmptyTransform
case telem.LapLastLapTime:
binding.Transform = LapTimeTransform
case telem.LapNumber:
binding.Transform = UInt8Transform
}
i.data.ActiveBinds = append(i.data.ActiveBinds, binding)