about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-09-17 19:01:06 +0200
committerEmile <hanemile@protonmail.com>2019-09-17 19:01:06 +0200
commitb678536d03cd9f9d37879363786213f7d3b6eb00 (patch)
tree74b27185d1d773dc9ed09e17a72aab1797e9e2ac
parent8ad4dc16643e75799e391d067282fe7f33b5d399 (diff)
fixed access to the wrong line
-rw-r--r--convert.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/convert.go b/convert.go
index 0e64637..100538b 100644
--- a/convert.go
+++ b/convert.go
@@ -172,9 +172,9 @@ func parseLineTwo(SplitTLE []string) (LineTwo, error) {
 	}
 
 	// Parse the Satellite Number
-	SatelliteNumber, err := strconv.Atoi(SplitTLE[1][2:7])
+	SatelliteNumber, err := strconv.Atoi(SplitTLE[2][2:7])
 	if err != nil {
-		return LineTwo{}, fmt.Errorf("%s: %#v\n%v", "Could not parse the Satellite Number", SplitTLE[1][2:7], err)
+		return LineTwo{}, fmt.Errorf("%s: %#v\n%v", "Could not parse the Satellite Number", SplitTLE[2][2:7], err)
 	}
 
 	// Parse the Inclination