Skip to content

Commit 43db855

Browse files
committed
Interim fix for _set_timestamp seconds bug.
1 parent db91900 commit 43db855

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gps/as_GPS.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ def _set_timestamp(self, utc_string):
234234
try:
235235
self.timestamp[0] = int(utc_string[0:2]) + self.local_offset # h
236236
self.timestamp[1] = int(utc_string[2:4]) # mins
237-
self.timestamp[2] = int(utc_string[4:]) # secs
237+
# 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
238240
return True
239241
except ValueError:
240242
pass

0 commit comments

Comments
 (0)