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

Improve Hormann BiSecur readability in SubGHz history #119

Merged
merged 4 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 10 additions & 2 deletions applications/main/subghz/subghz_history.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ bool subghz_history_add_to_history(
SubGhzProtocolDecoderBase* decoder_base = context;
uint32_t hash_data = subghz_protocol_decoder_base_get_hash_data_long(decoder_base);
if((instance->code_last_hash_data == hash_data) &&
((furi_get_tick() - instance->last_update_timestamp) < 500)) {
((furi_get_tick() - instance->last_update_timestamp) < 600)) {
instance->last_update_timestamp = furi_get_tick();
return false;
}
Expand All @@ -265,7 +265,6 @@ bool subghz_history_add_to_history(
instance->code_last_hash_data = hash_data;
instance->last_update_timestamp = furi_get_tick();

FuriString* text = furi_string_alloc();
SubGhzHistoryItem* item = SubGhzHistoryItemArray_push_raw(instance->history->data);
item->preset = malloc(sizeof(SubGhzRadioPreset));
item->type = decoder_base->protocol->type;
Expand All @@ -285,6 +284,15 @@ bool subghz_history_add_to_history(
item->flipper_string = flipper_format_string_alloc();
subghz_protocol_decoder_base_serialize(decoder_base, item->flipper_string, preset);

if(decoder_base->protocol && decoder_base->protocol->decoder &&
decoder_base->protocol->decoder->get_string_brief) {
decoder_base->protocol->decoder->get_string_brief(decoder_base, item->item_str);
instance->last_index_write++;
return true;
}

FuriString* text = furi_string_alloc();

do {
if(!flipper_format_rewind(item->flipper_string)) {
FURI_LOG_E(TAG, "Rewind error");
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/acurite_592txr.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const SubGhzProtocolDecoder ws_protocol_acurite_592txr_decoder = {
.serialize = ws_protocol_decoder_acurite_592txr_serialize,
.deserialize = ws_protocol_decoder_acurite_592txr_deserialize,
.get_string = ws_protocol_decoder_acurite_592txr_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_acurite_592txr_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/acurite_606tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const SubGhzProtocolDecoder ws_protocol_acurite_606tx_decoder = {
.serialize = ws_protocol_decoder_acurite_606tx_serialize,
.deserialize = ws_protocol_decoder_acurite_606tx_deserialize,
.get_string = ws_protocol_decoder_acurite_606tx_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_acurite_606tx_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/acurite_609txc.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const SubGhzProtocolDecoder ws_protocol_acurite_609txc_decoder = {
.serialize = ws_protocol_decoder_acurite_609txc_serialize,
.deserialize = ws_protocol_decoder_acurite_609txc_deserialize,
.get_string = ws_protocol_decoder_acurite_609txc_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_acurite_609txc_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/acurite_986.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const SubGhzProtocolDecoder ws_protocol_acurite_986_decoder = {
.serialize = ws_protocol_decoder_acurite_986_serialize,
.deserialize = ws_protocol_decoder_acurite_986_deserialize,
.get_string = ws_protocol_decoder_acurite_986_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_acurite_986_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/alutech_at_4n.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const SubGhzProtocolDecoder subghz_protocol_alutech_at_4n_decoder = {
.serialize = subghz_protocol_decoder_alutech_at_4n_serialize,
.deserialize = subghz_protocol_decoder_alutech_at_4n_deserialize,
.get_string = subghz_protocol_decoder_alutech_at_4n_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_alutech_at_4n_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/ambient_weather.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const SubGhzProtocolDecoder ws_protocol_ambient_weather_decoder = {
.serialize = ws_protocol_decoder_ambient_weather_serialize,
.deserialize = ws_protocol_decoder_ambient_weather_deserialize,
.get_string = ws_protocol_decoder_ambient_weather_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_ambient_weather_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/ansonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const SubGhzProtocolDecoder subghz_protocol_ansonic_decoder = {
.serialize = subghz_protocol_decoder_ansonic_serialize,
.deserialize = subghz_protocol_decoder_ansonic_deserialize,
.get_string = subghz_protocol_decoder_ansonic_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_ansonic_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/auriol_ahfl.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const SubGhzProtocolDecoder ws_protocol_auriol_ahfl_decoder = {
.serialize = ws_protocol_decoder_auriol_ahfl_serialize,
.deserialize = ws_protocol_decoder_auriol_ahfl_deserialize,
.get_string = ws_protocol_decoder_auriol_ahfl_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_auriol_ahfl_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/auriol_hg0601a.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const SubGhzProtocolDecoder ws_protocol_auriol_th_decoder = {
.serialize = ws_protocol_decoder_auriol_th_serialize,
.deserialize = ws_protocol_decoder_auriol_th_deserialize,
.get_string = ws_protocol_decoder_auriol_th_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_auriol_th_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/bett.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const SubGhzProtocolDecoder subghz_protocol_bett_decoder = {
.serialize = subghz_protocol_decoder_bett_serialize,
.deserialize = subghz_protocol_decoder_bett_deserialize,
.get_string = subghz_protocol_decoder_bett_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_bett_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/bin_raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const SubGhzProtocolDecoder subghz_protocol_bin_raw_decoder = {
.serialize = subghz_protocol_decoder_bin_raw_serialize,
.deserialize = subghz_protocol_decoder_bin_raw_deserialize,
.get_string = subghz_protocol_decoder_bin_raw_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_bin_raw_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/came.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const SubGhzProtocolDecoder subghz_protocol_came_decoder = {
.serialize = subghz_protocol_decoder_came_serialize,
.deserialize = subghz_protocol_decoder_came_deserialize,
.get_string = subghz_protocol_decoder_came_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_came_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/came_atomo.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const SubGhzProtocolDecoder subghz_protocol_came_atomo_decoder = {
.serialize = subghz_protocol_decoder_came_atomo_serialize,
.deserialize = subghz_protocol_decoder_came_atomo_deserialize,
.get_string = subghz_protocol_decoder_came_atomo_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_came_atomo_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/came_twee.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const SubGhzProtocolDecoder subghz_protocol_came_twee_decoder = {
.serialize = subghz_protocol_decoder_came_twee_serialize,
.deserialize = subghz_protocol_decoder_came_twee_deserialize,
.get_string = subghz_protocol_decoder_came_twee_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_came_twee_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/chamberlain_code.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const SubGhzProtocolDecoder subghz_protocol_chamb_code_decoder = {
.serialize = subghz_protocol_decoder_chamb_code_serialize,
.deserialize = subghz_protocol_decoder_chamb_code_deserialize,
.get_string = subghz_protocol_decoder_chamb_code_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_chamb_code_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/clemsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const SubGhzProtocolDecoder subghz_protocol_clemsa_decoder = {
.serialize = subghz_protocol_decoder_clemsa_serialize,
.deserialize = subghz_protocol_decoder_clemsa_deserialize,
.get_string = subghz_protocol_decoder_clemsa_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_clemsa_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/doitrand.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const SubGhzProtocolDecoder subghz_protocol_doitrand_decoder = {
.serialize = subghz_protocol_decoder_doitrand_serialize,
.deserialize = subghz_protocol_decoder_doitrand_deserialize,
.get_string = subghz_protocol_decoder_doitrand_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_doitrand_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/dooya.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const SubGhzProtocolDecoder subghz_protocol_dooya_decoder = {
.serialize = subghz_protocol_decoder_dooya_serialize,
.deserialize = subghz_protocol_decoder_dooya_deserialize,
.get_string = subghz_protocol_decoder_dooya_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_dooya_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/faac_slh.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const SubGhzProtocolDecoder subghz_protocol_faac_slh_decoder = {
.serialize = subghz_protocol_decoder_faac_slh_serialize,
.deserialize = subghz_protocol_decoder_faac_slh_deserialize,
.get_string = subghz_protocol_decoder_faac_slh_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_faac_slh_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/gate_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const SubGhzProtocolDecoder subghz_protocol_gate_tx_decoder = {
.serialize = subghz_protocol_decoder_gate_tx_serialize,
.deserialize = subghz_protocol_decoder_gate_tx_deserialize,
.get_string = subghz_protocol_decoder_gate_tx_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_gate_tx_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/gt_wt_02.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const SubGhzProtocolDecoder ws_protocol_gt_wt_02_decoder = {
.serialize = ws_protocol_decoder_gt_wt_02_serialize,
.deserialize = ws_protocol_decoder_gt_wt_02_deserialize,
.get_string = ws_protocol_decoder_gt_wt_02_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_gt_wt_02_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/gt_wt_03.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const SubGhzProtocolDecoder ws_protocol_gt_wt_03_decoder = {
.serialize = ws_protocol_decoder_gt_wt_03_serialize,
.deserialize = ws_protocol_decoder_gt_wt_03_deserialize,
.get_string = ws_protocol_decoder_gt_wt_03_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_gt_wt_03_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/holtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const SubGhzProtocolDecoder subghz_protocol_holtek_decoder = {
.serialize = subghz_protocol_decoder_holtek_serialize,
.deserialize = subghz_protocol_decoder_holtek_deserialize,
.get_string = subghz_protocol_decoder_holtek_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_holtek_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/holtek_ht12x.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const SubGhzProtocolDecoder subghz_protocol_holtek_th12x_decoder = {
.serialize = subghz_protocol_decoder_holtek_th12x_serialize,
.deserialize = subghz_protocol_decoder_holtek_th12x_deserialize,
.get_string = subghz_protocol_decoder_holtek_th12x_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_holtek_th12x_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/honeywell.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ const SubGhzProtocolDecoder subghz_protocol_honeywell_decoder = {
.serialize = subghz_protocol_decoder_honeywell_serialize,
.deserialize = subghz_protocol_decoder_honeywell_deserialize,
.get_string = subghz_protocol_decoder_honeywell_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_honeywell_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/honeywell_wdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const SubGhzProtocolDecoder subghz_protocol_honeywell_wdb_decoder = {
.serialize = subghz_protocol_decoder_honeywell_wdb_serialize,
.deserialize = subghz_protocol_decoder_honeywell_wdb_deserialize,
.get_string = subghz_protocol_decoder_honeywell_wdb_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_honeywell_wdb_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/hormann.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const SubGhzProtocolDecoder subghz_protocol_hormann_decoder = {
.serialize = subghz_protocol_decoder_hormann_serialize,
.deserialize = subghz_protocol_decoder_hormann_deserialize,
.get_string = subghz_protocol_decoder_hormann_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_hormann_encoder = {
Expand Down
21 changes: 21 additions & 0 deletions lib/subghz/protocols/hormann_bisecur.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const SubGhzProtocolDecoder subghz_protocol_hormann_bisecur_decoder = {
.serialize = subghz_protocol_decoder_hormann_bisecur_serialize,
.deserialize = subghz_protocol_decoder_hormann_bisecur_deserialize,
.get_string = subghz_protocol_decoder_hormann_bisecur_get_string,
.get_string_brief = subghz_protocol_decoder_hormann_bisecur_get_string_brief,
};

const SubGhzProtocolEncoder subghz_protocol_hormann_bisecur_encoder = {
Expand Down Expand Up @@ -572,6 +573,26 @@ void subghz_protocol_decoder_hormann_bisecur_get_string(void* context, FuriStrin
instance->generic.data_2);
}

void subghz_protocol_decoder_hormann_bisecur_get_string_brief(void* context, FuriString* output) {
furi_assert(context);
SubGhzProtocolDecoderHormannBiSecur* instance = context;
subghz_protocol_hormann_bisecur_parse_data(instance);
bool valid_crc = subghz_protocol_decoder_hormann_bisecur_check_crc(instance);

if(!valid_crc) {
furi_string_cat_printf(output, "HBS Bad checksum");
return;
}

uint8_t data_hash = subghz_protocol_blocks_xor_bytes(
(const uint8_t*)&instance->generic.data, sizeof(uint64_t));
uint8_t data_2_hash = subghz_protocol_blocks_xor_bytes(
(const uint8_t*)&instance->generic.data_2, sizeof(uint64_t));

furi_string_cat_printf(
output, "HBS %08lX:%02X%02X", instance->generic.serial, data_hash, data_2_hash);
}

static LevelDuration subghz_protocol_encoder_hormann_bisecur_add_duration_to_upload(
ManchesterEncoderResult result) {
LevelDuration data = {.duration = 0, .level = 0};
Expand Down
7 changes: 7 additions & 0 deletions lib/subghz/protocols/hormann_bisecur.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,10 @@ SubGhzProtocolStatus subghz_protocol_decoder_hormann_bisecur_deserialize(
* @param output Resulting text
*/
void subghz_protocol_decoder_hormann_bisecur_get_string(void* context, FuriString* output);

/**
* Getting a one-line textual representation of the received data.
* @param context Pointer to a SubGhzProtocolDecoderHormannBiSecur instance
* @param output Resulting text
*/
void subghz_protocol_decoder_hormann_bisecur_get_string_brief(void* context, FuriString* output);
1 change: 1 addition & 0 deletions lib/subghz/protocols/ido.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const SubGhzProtocolDecoder subghz_protocol_ido_decoder = {
.deserialize = subghz_protocol_decoder_ido_deserialize,
.serialize = subghz_protocol_decoder_ido_serialize,
.get_string = subghz_protocol_decoder_ido_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_ido_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/infactory.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const SubGhzProtocolDecoder ws_protocol_infactory_decoder = {
.serialize = ws_protocol_decoder_infactory_serialize,
.deserialize = ws_protocol_decoder_infactory_deserialize,
.get_string = ws_protocol_decoder_infactory_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_infactory_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/intertechno_v3.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const SubGhzProtocolDecoder subghz_protocol_intertechno_v3_decoder = {
.serialize = subghz_protocol_decoder_intertechno_v3_serialize,
.deserialize = subghz_protocol_decoder_intertechno_v3_deserialize,
.get_string = subghz_protocol_decoder_intertechno_v3_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_intertechno_v3_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/kedsum_th.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const SubGhzProtocolDecoder ws_protocol_kedsum_th_decoder = {
.serialize = ws_protocol_decoder_kedsum_th_serialize,
.deserialize = ws_protocol_decoder_kedsum_th_deserialize,
.get_string = ws_protocol_decoder_kedsum_th_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_kedsum_th_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/keeloq.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const SubGhzProtocolDecoder subghz_protocol_keeloq_decoder = {
.serialize = subghz_protocol_decoder_keeloq_serialize,
.deserialize = subghz_protocol_decoder_keeloq_deserialize,
.get_string = subghz_protocol_decoder_keeloq_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_keeloq_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/kia.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const SubGhzProtocolDecoder subghz_protocol_kia_decoder = {
.serialize = subghz_protocol_decoder_kia_serialize,
.deserialize = subghz_protocol_decoder_kia_deserialize,
.get_string = subghz_protocol_decoder_kia_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_kia_encoder = {
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/kinggates_stylo_4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const SubGhzProtocolDecoder subghz_protocol_kinggates_stylo_4k_decoder = {
.serialize = subghz_protocol_decoder_kinggates_stylo_4k_serialize,
.deserialize = subghz_protocol_decoder_kinggates_stylo_4k_deserialize,
.get_string = subghz_protocol_decoder_kinggates_stylo_4k_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_kinggates_stylo_4k_encoder = {
Expand Down Expand Up @@ -582,4 +583,4 @@ void subghz_protocol_decoder_kinggates_stylo_4k_get_string(void* context, FuriSt
instance->generic.serial,
instance->generic.btn,
instance->generic.cnt);
}
}
1 change: 1 addition & 0 deletions lib/subghz/protocols/lacrosse_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const SubGhzProtocolDecoder ws_protocol_lacrosse_tx_decoder = {
.serialize = ws_protocol_decoder_lacrosse_tx_serialize,
.deserialize = ws_protocol_decoder_lacrosse_tx_deserialize,
.get_string = ws_protocol_decoder_lacrosse_tx_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_lacrosse_tx_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/lacrosse_tx141thbv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const SubGhzProtocolDecoder ws_protocol_lacrosse_tx141thbv2_decoder = {
.serialize = ws_protocol_decoder_lacrosse_tx141thbv2_serialize,
.deserialize = ws_protocol_decoder_lacrosse_tx141thbv2_deserialize,
.get_string = ws_protocol_decoder_lacrosse_tx141thbv2_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder ws_protocol_lacrosse_tx141thbv2_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const SubGhzProtocolDecoder subghz_protocol_linear_decoder = {
.serialize = subghz_protocol_decoder_linear_serialize,
.deserialize = subghz_protocol_decoder_linear_deserialize,
.get_string = subghz_protocol_decoder_linear_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_linear_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/linear_delta3.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const SubGhzProtocolDecoder subghz_protocol_linear_delta3_decoder = {
.serialize = subghz_protocol_decoder_linear_delta3_serialize,
.deserialize = subghz_protocol_decoder_linear_delta3_deserialize,
.get_string = subghz_protocol_decoder_linear_delta3_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_linear_delta3_encoder = {
Expand Down
1 change: 1 addition & 0 deletions lib/subghz/protocols/magellan.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const SubGhzProtocolDecoder subghz_protocol_magellan_decoder = {
.serialize = subghz_protocol_decoder_magellan_serialize,
.deserialize = subghz_protocol_decoder_magellan_deserialize,
.get_string = subghz_protocol_decoder_magellan_get_string,
.get_string_brief = NULL,
};

const SubGhzProtocolEncoder subghz_protocol_magellan_encoder = {
Expand Down
Loading
Loading