@@ -31,8 +31,10 @@ using namespace std::literals;
31
31
32
32
const std::string_view filetype_name = " Filetype" sv;
33
33
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;
36
38
const std::string_view protocol_name = " Protocol" sv;
37
39
const std::string_view preset_name = " Preset" sv;
38
40
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) {
93
95
parse_float_meta (fixed, metadata.latitude );
94
96
else if (cols[0 ] == longitude_name)
95
97
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 );
96
102
else if (cols[0 ] == protocol_name) {
97
103
if (fixed == " RAW" ) metadata.protocol = FLIPPER_PROTO_RAW;
98
104
if (fixed == " BinRAW" ) metadata.protocol = FLIPPER_PROTO_BINRAW;
0 commit comments