File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -162,10 +162,10 @@ def _parse_gpgga(self, args):
162
162
if data is None or len (data ) != 14 :
163
163
return # Unexpected number of params.
164
164
# Parse fix time.
165
- time_utc = _parse_float (data [0 ])
165
+ time_utc = int ( _parse_float (data [0 ]) )
166
166
if time_utc is not None :
167
167
hours = time_utc // 10000
168
- mins = int (( time_utc // 100 ) % 100 )
168
+ mins = ( time_utc // 100 ) % 100
169
169
secs = time_utc % 100
170
170
# Set or update time to a friendly python time struct.
171
171
if self .timestamp_utc is not None :
@@ -198,10 +198,10 @@ def _parse_gprmc(self, args):
198
198
if data is None or len (data ) < 11 :
199
199
return # Unexpected number of params.
200
200
# Parse fix time.
201
- time_utc = _parse_float (data [0 ])
201
+ time_utc = int ( _parse_float (data [0 ]) )
202
202
if time_utc is not None :
203
203
hours = time_utc // 10000
204
- mins = int (( time_utc // 100 ) % 100 )
204
+ mins = ( time_utc // 100 ) % 100
205
205
secs = time_utc % 100
206
206
# Set or update time to a friendly python time struct.
207
207
if self .timestamp_utc is not None :
You can’t perform that action at this time.
0 commit comments