Skip to content

Commit 99d8fbd

Browse files
authored
Added the proposed new geotagging from flipper files. kept the old ones for compatibility (#2289)
1 parent 09c2c43 commit 99d8fbd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

firmware/application/flipper_subfile.cpp

+8-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ using namespace std::literals;
3131

3232
const std::string_view filetype_name = "Filetype"sv;
3333
const std::string_view frequency_name = "Frequency"sv;
34-
const std::string_view latitude_name = "Latitute"sv;
35-
const std::string_view longitude_name = "Longitude"sv;
34+
const std::string_view latitude_name_old = "Latitute"sv;
35+
const std::string_view longitude_name_old = "Longitude"sv;
36+
const std::string_view latitude_name = "Lat"sv;
37+
const std::string_view longitude_name = "Lon"sv;
3638
const std::string_view protocol_name = "Protocol"sv;
3739
const std::string_view preset_name = "Preset"sv;
3840
const std::string_view te_name = "TE"sv; // only in BinRAW
@@ -93,6 +95,10 @@ Optional<flippersub_metadata> read_flippersub_file(const fs::path& path) {
9395
parse_float_meta(fixed, metadata.latitude);
9496
else if (cols[0] == longitude_name)
9597
parse_float_meta(fixed, metadata.longitude);
98+
else if (cols[0] == latitude_name_old)
99+
parse_float_meta(fixed, metadata.latitude);
100+
else if (cols[0] == longitude_name_old)
101+
parse_float_meta(fixed, metadata.longitude);
96102
else if (cols[0] == protocol_name) {
97103
if (fixed == "RAW") metadata.protocol = FLIPPER_PROTO_RAW;
98104
if (fixed == "BinRAW") metadata.protocol = FLIPPER_PROTO_BINRAW;

0 commit comments

Comments
 (0)