added the form items to set the TelemetryField on UI windows

This commit is contained in:
2026-03-09 22:01:07 +00:00
parent ef8f4603d6
commit 2ef3d0d375
5 changed files with 84 additions and 28 deletions
+5
View File
@@ -85,6 +85,8 @@ func (tf *TelemetryField) String() string {
type FieldID uint16
// We use FirstField to start the count on the fields the user can select
// the first three will be for internal use
const (
FirstTimeStamp FieldID = iota
PreviousTimeStamp
@@ -121,6 +123,9 @@ func initFieldNamesMap() {
func GetFieldID(name string) (FieldID, bool) {
id, ok := fieldNameToID[name]
if ok {
id = id - FirstField
}
return id, ok
}