diff --git a/main/gen_gdl90.go b/main/gen_gdl90.go index fb492d73..be47ced0 100644 --- a/main/gen_gdl90.go +++ b/main/gen_gdl90.go @@ -363,9 +363,9 @@ func makeSXHeartbeat() []byte { // Version code. Messy parsing to fit into four bytes. //FIXME: This is why we can't have nice things. - v := stratuxVersion[1:] // Skip first character, should be 'v'. - m_str := v[0:strings.Index(v, ".")] // Major version. - mib_str := v[strings.Index(v, ".")+1:] // Minor and build version. + thisVers := stratuxVersion[1:] // Skip first character, should be 'v'. + m_str := v[0:strings.Index(thisVers, ".")] // Major version. + mib_str := v[strings.Index(thisVers, ".")+1:] // Minor and build version. tp := 0 // Build "type". mi_str := ""