diff --git a/mavgen/mavgen.go b/mavgen/mavgen.go index f0182f7..f111fcb 100644 --- a/mavgen/mavgen.go +++ b/mavgen/mavgen.go @@ -34,7 +34,7 @@ type Enum struct { } type EnumEntry struct { - Value uint8 `xml:"value,attr"` + Value uint64 `xml:"value,attr"` Name string `xml:"name,attr"` Description string `xml:"description"` Params []*EnumEntryParam `xml:"param"` @@ -371,7 +371,7 @@ const ({{range .Entries}} e.Name = UpperCamelCase(e.Name) for i, ee := range e.Entries { if ee.Value == 0 { - ee.Value = uint8(i) + ee.Value = uint64(i) } ee.Description = strings.Replace(ee.Description, "\n", " ", -1) }