@@ -148,11 +148,11 @@ def _parse_gpgga(self, args):
148
148
if data is None or len (data ) != 14 :
149
149
return # Unexpected number of params.
150
150
# Parse fix time.
151
- time_utc = _parse_float (data [0 ])
151
+ time_utc = int ( _parse_float (data [0 ]) )
152
152
if time_utc is not None :
153
153
hours = time_utc // 10000
154
- mins = int (( time_utc // 100 ) % 100 )
155
- secs = int ( time_utc % 100 )
154
+ mins = ( time_utc // 100 ) % 100
155
+ secs = time_utc % 100
156
156
# Set or update time to a friendly python time struct.
157
157
if self .timestamp_utc is not None :
158
158
self .timestamp_utc = time .struct_time ((
@@ -184,11 +184,11 @@ def _parse_gprmc(self, args):
184
184
if data is None or len (data ) < 11 :
185
185
return # Unexpected number of params.
186
186
# Parse fix time.
187
- time_utc = _parse_float (data [0 ])
187
+ time_utc = int ( _parse_float (data [0 ]) )
188
188
if time_utc is not None :
189
189
hours = time_utc // 10000
190
- mins = int (( time_utc // 100 ) % 100 )
191
- secs = int ( time_utc % 100 )
190
+ mins = ( time_utc // 100 ) % 100
191
+ secs = time_utc % 100
192
192
# Set or update time to a friendly python time struct.
193
193
if self .timestamp_utc is not None :
194
194
self .timestamp_utc = time .struct_time ((
0 commit comments