Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions adafruit_gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _parse_gpgga(self, args):
if time_utc is not None:
hours = time_utc // 10000
mins = int((time_utc // 100) % 100)
secs = time_utc % 100
secs = int(time_utc % 100)
# Set or update time to a friendly python time struct.
if self.timestamp_utc is not None:
self.timestamp_utc = time.struct_time((
Expand Down Expand Up @@ -188,7 +188,7 @@ def _parse_gprmc(self, args):
if time_utc is not None:
hours = time_utc // 10000
mins = int((time_utc // 100) % 100)
secs = time_utc % 100
secs = int(time_utc % 100)
# Set or update time to a friendly python time struct.
if self.timestamp_utc is not None:
self.timestamp_utc = time.struct_time((
Expand Down