kopia lustrzana https://github.com/inmcm/micropyGPS
Fix pretty kph string printer from using mph value
rodzic
8bd4818871
commit
e82a5d5c8f
|
@ -584,7 +584,7 @@ class MicropyGPS(object):
|
||||||
speed_string = str(self.speed[0]) + unit_str
|
speed_string = str(self.speed[0]) + unit_str
|
||||||
|
|
||||||
else:
|
else:
|
||||||
speed_string = str(self.speed[1]) + ' km/h'
|
speed_string = str(self.speed[2]) + ' km/h'
|
||||||
|
|
||||||
return speed_string
|
return speed_string
|
||||||
|
|
||||||
|
@ -649,7 +649,7 @@ class MicropyGPS(object):
|
||||||
|
|
||||||
return date_string
|
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}
|
supported_sentences = {'GPRMC': gprmc, 'GPGGA': gpgga, 'GPVTG': gpvtg, 'GPGSA': gpgsa, 'GPGSV': gpgsv}
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Ładowanie…
Reference in New Issue