We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ccc6b9 commit 9f90c48Copy full SHA for 9f90c48
adafruit_gps.py
@@ -86,7 +86,8 @@ def _parse_degrees(nmea_data):
86
raw = nmea_data.split(".")
87
deg = int(raw[0]) // 100 * 1000000 # the ddd
88
minutes = int(raw[0]) % 100 # the mm.
89
- minutes += int(f"{raw[1][:4]:0<4}") / 10000 # the .mmmm
+ tmp = raw[1][:4] # mpy-cross wont compile if this is directly in the next line
90
+ minutes += int(f"{tmp:0<4}") / 10000
91
minutes = int(minutes / 60 * 1000000)
92
return deg + minutes
93
0 commit comments