From f51bd61b3b6474c7a4e596ce7c9adbae20ba7f30 Mon Sep 17 00:00:00 2001 From: Christopher Young Date: Sat, 26 Dec 2015 17:34:35 -0500 Subject: [PATCH] Typo. --- main/gen_gdl90.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/gen_gdl90.go b/main/gen_gdl90.go index be47ced0..dedd01bb 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. - 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. + thisVers := stratuxVersion[1:] // Skip first character, should be 'v'. + m_str := thisVers[0:strings.Index(thisVers, ".")] // Major version. + mib_str := thisVers[strings.Index(thisVers, ".")+1:] // Minor and build version. tp := 0 // Build "type". mi_str := ""