Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions applications/main/subghz/subghz_i.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ bool subghz_key_load(SubGhz* subghz, const char* file_path, bool show_dialog) {
}
}

//Load latitute and longitude if present, strict mode to avoid reading the whole file twice
//Load latitude and longitude if present, strict mode to avoid reading the whole file twice
flipper_format_set_strict_mode(fff_data_file, true);
if(!flipper_format_read_float(fff_data_file, "Latitute", (float*)&temp_lat, 1) ||
if(!flipper_format_read_float(fff_data_file, "Latitude", (float*)&temp_lat, 1) ||
!flipper_format_read_float(fff_data_file, "Longitude", (float*)&temp_lon, 1)) {
FURI_LOG_W(TAG, "Missing Latitude and Longitude (optional)");
flipper_format_rewind(fff_data_file);
Expand Down
4 changes: 2 additions & 2 deletions lib/subghz/blocks/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ 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, "Latitude", &preset->latitude, 1)) {
FURI_LOG_E(TAG, "Unable to add Latitude");
res = SubGhzProtocolStatusErrorParserLatitude;
break;
}
Expand Down
Loading