Sub-GHz: Fix GPS "Latitute" typo, switch to "Lat" and "Lon" in .sub files (#246)

* fix(subghz): s/Latitute/Latitude/

* feat(subghz): using Lat,Lon with fallback to older values

* Some speedup and fix fallbacks

* Update changelog

---------

Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com>
This commit is contained in:
m7i-org
2024-10-08 00:10:07 -04:00
committed by GitHub
parent ff87fbee37
commit ae70945238
3 changed files with 27 additions and 10 deletions
+4 -4
View File
@@ -63,13 +63,13 @@ SubGhzProtocolStatus subghz_block_generic_serialize_common(
break;
}
}
if(!flipper_format_write_float(flipper_format, "Latitute", &preset->latitude, 1)) {
FURI_LOG_E(TAG, "Unable to add Latitute");
if(!flipper_format_write_float(flipper_format, "Lat", &preset->latitude, 1)) {
FURI_LOG_E(TAG, "Unable to add Lat");
res = SubGhzProtocolStatusErrorParserLatitude;
break;
}
if(!flipper_format_write_float(flipper_format, "Longitude", &preset->longitude, 1)) {
FURI_LOG_E(TAG, "Unable to add Longitude");
if(!flipper_format_write_float(flipper_format, "Lon", &preset->longitude, 1)) {
FURI_LOG_E(TAG, "Unable to add Lon");
res = SubGhzProtocolStatusErrorParserLongitude;
break;
}