Skip to content

Commit b593132

Browse files
OzgurOzgur
authored andcommitted
fix: fix dict key - value error
1 parent 0c96b56 commit b593132

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pico_lte/modules/gps.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,8 @@ def get_location(self):
107107

108108
if result["status"] == Status.SUCCESS:
109109
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-
)
110+
data["value"][0] = self.nmea_to_decimal(data["value"][0])
111+
data["value"][1] = self.nmea_to_decimal(data["value"][1])
116112
return data
117113
return result
118114

0 commit comments

Comments
 (0)