There was an error while loading. Please reload this page.
1 parent 0c96b56 commit b593132Copy full SHA for b593132
pico_lte/modules/gps.py
@@ -107,12 +107,8 @@ def get_location(self):
107
108
if result["status"] == Status.SUCCESS:
109
data = get_desired_data(result, desired, data_index=[1, 2])
110
- data["value"]["Lat-Lon"][0] = self.nmea_to_decimal(
111
- data["value"]["Lat-Lon"][0]
112
- )
113
- data["value"]["Lat-Lon"][1] = self.nmea_to_decimal(
114
- data["value"]["Lat-Lon"][1]
115
+ data["value"][0] = self.nmea_to_decimal(data["value"][0])
+ data["value"][1] = self.nmea_to_decimal(data["value"][1])
116
return data
117
return result
118
0 commit comments