From b678536d03cd9f9d37879363786213f7d3b6eb00 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 17 Sep 2019 19:01:06 +0200 Subject: fixed access to the wrong line --- convert.go | 4 ++-- 1 file 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 -- cgit 1.4.1