added an empty telemetry field, will be usefull for developemnt

This commit is contained in:
2026-03-13 17:19:29 +00:00
parent 05af404db1
commit 6b7c09c314
3 changed files with 10 additions and 2 deletions
+3 -1
View File
@@ -120,6 +120,7 @@ const (
Speed FieldID = iota
RPM
Gear
Empty
MaxFields
)
const FirstField = Speed
@@ -128,11 +129,12 @@ var FieldNames = [MaxFields]string{
Speed: "Speed",
RPM: "RPM",
Gear: "Gear",
Empty: "Emtpy",
}
func GetFieldName(id FieldID) string {
if id >= MaxFields {
return "Uknown"
return "Unknown"
}
return FieldNames[id]