mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-17 00:28:11 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user