From e82a5d5c8f0fcfda5c696d7dfc47e7948e17f3f9 Mon Sep 17 00:00:00 2001 From: inmcm Date: Wed, 28 Jan 2015 19:39:20 -0500 Subject: [PATCH] Fix pretty kph string printer from using mph value --- micropyGPS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micropyGPS.py b/micropyGPS.py index fda0dfd..b43a5d3 100644 --- a/micropyGPS.py +++ b/micropyGPS.py @@ -584,7 +584,7 @@ class MicropyGPS(object): speed_string = str(self.speed[0]) + unit_str else: - speed_string = str(self.speed[1]) + ' km/h' + speed_string = str(self.speed[2]) + ' km/h' return speed_string @@ -649,7 +649,7 @@ class MicropyGPS(object): return date_string - # All the currently supported NMEA sentences + # All the currently supported NMEA sentences supported_sentences = {'GPRMC': gprmc, 'GPGGA': gpgga, 'GPVTG': gpvtg, 'GPGSA': gpgsa, 'GPGSV': gpgsv} if __name__ == "__main__":