diff --git a/lib/subghz/protocols/pcsg_generic.c b/lib/subghz/protocols/pcsg_generic.c index 99ff1f665..fc56049a2 100644 --- a/lib/subghz/protocols/pcsg_generic.c +++ b/lib/subghz/protocols/pcsg_generic.c @@ -59,6 +59,16 @@ SubGhzProtocolStatus pcsg_block_generic_serialize( break; } } + if(!flipper_format_write_float(flipper_format, "Latitute", &preset->latitude, 1)) { + FURI_LOG_E(TAG, "Unable to add Latitute"); + res = SubGhzProtocolStatusErrorParserLatitude; + break; + } + if(!flipper_format_write_float(flipper_format, "Longitude", &preset->longitude, 1)) { + FURI_LOG_E(TAG, "Unable to add Longitude"); + res = SubGhzProtocolStatusErrorParserLongitude; + break; + } if(!flipper_format_write_string_cstr(flipper_format, "Protocol", instance->protocol_name)) { FURI_LOG_E(TAG, "Unable to add Protocol"); break; diff --git a/lib/subghz/protocols/tpms_generic.c b/lib/subghz/protocols/tpms_generic.c index b6776c5a3..0251c2161 100644 --- a/lib/subghz/protocols/tpms_generic.c +++ b/lib/subghz/protocols/tpms_generic.c @@ -64,6 +64,16 @@ SubGhzProtocolStatus tpms_block_generic_serialize( break; } } + if(!flipper_format_write_float(flipper_format, "Latitute", &preset->latitude, 1)) { + FURI_LOG_E(TAG, "Unable to add Latitute"); + res = SubGhzProtocolStatusErrorParserLatitude; + break; + } + if(!flipper_format_write_float(flipper_format, "Longitude", &preset->longitude, 1)) { + FURI_LOG_E(TAG, "Unable to add Longitude"); + res = SubGhzProtocolStatusErrorParserLongitude; + break; + } if(!flipper_format_write_string_cstr(flipper_format, "Protocol", instance->protocol_name)) { FURI_LOG_E(TAG, "Unable to add Protocol"); res = SubGhzProtocolStatusErrorParserProtocolName; diff --git a/lib/subghz/protocols/ws_generic.c b/lib/subghz/protocols/ws_generic.c index c3483dadd..0fcbd3f33 100644 --- a/lib/subghz/protocols/ws_generic.c +++ b/lib/subghz/protocols/ws_generic.c @@ -65,6 +65,16 @@ SubGhzProtocolStatus ws_block_generic_serialize( break; } } + if(!flipper_format_write_float(flipper_format, "Latitute", &preset->latitude, 1)) { + FURI_LOG_E(TAG, "Unable to add Latitute"); + res = SubGhzProtocolStatusErrorParserLatitude; + break; + } + if(!flipper_format_write_float(flipper_format, "Longitude", &preset->longitude, 1)) { + FURI_LOG_E(TAG, "Unable to add Longitude"); + res = SubGhzProtocolStatusErrorParserLongitude; + break; + } if(!flipper_format_write_string_cstr(flipper_format, "Protocol", instance->protocol_name)) { FURI_LOG_E(TAG, "Unable to add Protocol"); res = SubGhzProtocolStatusErrorParserProtocolName;