8000
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 db91900 commit 43db855Copy full SHA for 43db855
gps/as_GPS.py
@@ -234,7 +234,9 @@ def _set_timestamp(self, utc_string):
234
try:
235
self.timestamp[0] = int(utc_string[0:2]) + self.local_offset # h
236
self.timestamp[1] = int(utc_string[2:4]) # mins
237
- self.timestamp[2] = int(utc_string[4:]) # secs
+ # secs TODO spec states 2 chars but getting decimal: perhaps this
238
+ # should be float after all.
239
+ self.timestamp[2] = int(utc_string[4:6]) # secs
240
return True
241
except ValueError:
242
pass
0 commit comments