Fix pretty kph string printer from using mph value

pull/4/head
inmcm 2015-01-28 19:39:20 -05:00
rodzic 8bd4818871
commit e82a5d5c8f
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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__":