Skip to content

Commit

Permalink
SubGHz: Fix hashes compat for apps (eg. Weather)
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Mar 14, 2024
1 parent e69a6c0 commit ab86ef8
Show file tree
Hide file tree
Showing 69 changed files with 148 additions and 74 deletions.
3 changes: 2 additions & 1 deletion lib/subghz/protocols/acurite_592txr.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ const SubGhzProtocolDecoder ws_protocol_acurite_592txr_decoder = {
.feed = ws_protocol_decoder_acurite_592txr_feed,
.reset = ws_protocol_decoder_acurite_592txr_reset,

.get_hash_data = ws_protocol_decoder_acurite_592txr_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_acurite_592txr_get_hash_data,
.serialize = ws_protocol_decoder_acurite_592txr_serialize,
.deserialize = ws_protocol_decoder_acurite_592txr_deserialize,
.get_string = ws_protocol_decoder_acurite_592txr_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/acurite_606tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ const SubGhzProtocolDecoder ws_protocol_acurite_606tx_decoder = {
.feed = ws_protocol_decoder_acurite_606tx_feed,
.reset = ws_protocol_decoder_acurite_606tx_reset,

.get_hash_data = ws_protocol_decoder_acurite_606tx_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_acurite_606tx_get_hash_data,
.serialize = ws_protocol_decoder_acurite_606tx_serialize,
.deserialize = ws_protocol_decoder_acurite_606tx_deserialize,
.get_string = ws_protocol_decoder_acurite_606tx_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/acurite_609txc.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const SubGhzProtocolDecoder ws_protocol_acurite_609txc_decoder = {
.feed = ws_protocol_decoder_acurite_609txc_feed,
.reset = ws_protocol_decoder_acurite_609txc_reset,

.get_hash_data = ws_protocol_decoder_acurite_609txc_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_acurite_609txc_get_hash_data,
.serialize = ws_protocol_decoder_acurite_609txc_serialize,
.deserialize = ws_protocol_decoder_acurite_609txc_deserialize,
.get_string = ws_protocol_decoder_acurite_609txc_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/acurite_986.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const SubGhzProtocolDecoder ws_protocol_acurite_986_decoder = {
.feed = ws_protocol_decoder_acurite_986_feed,
.reset = ws_protocol_decoder_acurite_986_reset,

.get_hash_data = ws_protocol_decoder_acurite_986_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_acurite_986_get_hash_data,
.serialize = ws_protocol_decoder_acurite_986_serialize,
.deserialize = ws_protocol_decoder_acurite_986_deserialize,
.get_string = ws_protocol_decoder_acurite_986_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/alutech_at_4n.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ const SubGhzProtocolDecoder subghz_protocol_alutech_at_4n_decoder = {
.feed = subghz_protocol_decoder_alutech_at_4n_feed,
.reset = subghz_protocol_decoder_alutech_at_4n_reset,

.get_hash_data = subghz_protocol_decoder_alutech_at_4n_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_alutech_at_4n_get_hash_data,
.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,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/ambient_weather.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ const SubGhzProtocolDecoder ws_protocol_ambient_weather_decoder = {
.feed = ws_protocol_decoder_ambient_weather_feed,
.reset = ws_protocol_decoder_ambient_weather_reset,

.get_hash_data = ws_protocol_decoder_ambient_weather_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_ambient_weather_get_hash_data,
.serialize = ws_protocol_decoder_ambient_weather_serialize,
.deserialize = ws_protocol_decoder_ambient_weather_deserialize,
.get_string = ws_protocol_decoder_ambient_weather_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/ansonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const SubGhzProtocolDecoder subghz_protocol_ansonic_decoder = {
.feed = subghz_protocol_decoder_ansonic_feed,
.reset = subghz_protocol_decoder_ansonic_reset,

.get_hash_data = subghz_protocol_decoder_ansonic_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_ansonic_get_hash_data,
.serialize = subghz_protocol_decoder_ansonic_serialize,
.deserialize = subghz_protocol_decoder_ansonic_deserialize,
.get_string = subghz_protocol_decoder_ansonic_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/auriol_ahfl.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ const SubGhzProtocolDecoder ws_protocol_auriol_ahfl_decoder = {
.feed = ws_protocol_decoder_auriol_ahfl_feed,
.reset = ws_protocol_decoder_auriol_ahfl_reset,

.get_hash_data = ws_protocol_decoder_auriol_ahfl_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_auriol_ahfl_get_hash_data,
.serialize = ws_protocol_decoder_auriol_ahfl_serialize,
.deserialize = ws_protocol_decoder_auriol_ahfl_deserialize,
.get_string = ws_protocol_decoder_auriol_ahfl_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/auriol_hg0601a.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const SubGhzProtocolDecoder ws_protocol_auriol_th_decoder = {
.feed = ws_protocol_decoder_auriol_th_feed,
.reset = ws_protocol_decoder_auriol_th_reset,

.get_hash_data = ws_protocol_decoder_auriol_th_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_auriol_th_get_hash_data,
.serialize = ws_protocol_decoder_auriol_th_serialize,
.deserialize = ws_protocol_decoder_auriol_th_deserialize,
.get_string = ws_protocol_decoder_auriol_th_get_string,
Expand Down
18 changes: 11 additions & 7 deletions lib/subghz/protocols/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ SubGhzProtocolStatus subghz_protocol_decoder_base_deserialize(

uint8_t subghz_protocol_decoder_base_get_hash_data(SubGhzProtocolDecoderBase* decoder_base) {
uint8_t hash = 0;
if(!decoder_base->protocol || !decoder_base->protocol->decoder) return hash;

if(decoder_base->protocol && decoder_base->protocol->decoder &&
decoder_base->protocol->decoder->get_hash_data) {
uint32_t full = decoder_base->protocol->decoder->get_hash_data(decoder_base);
uint8_t* p = (uint8_t*)&full;
for(size_t i = 0; i < sizeof(full); i++) {
if(decoder_base->protocol->decoder->get_hash_data) {
hash = decoder_base->protocol->decoder->get_hash_data(decoder_base);
} else if(decoder_base->protocol->decoder->get_hash_data_long) {
uint32_t long_hash = decoder_base->protocol->decoder->get_hash_data_long(decoder_base);
uint8_t* p = (uint8_t*)&long_hash;
for(size_t i = 0; i < sizeof(long_hash); i++) {
hash ^= p[i];
}
}
Expand All @@ -67,10 +69,12 @@ uint8_t subghz_protocol_decoder_base_get_hash_data(SubGhzProtocolDecoderBase* de

uint32_t subghz_protocol_decoder_base_get_hash_data_long(SubGhzProtocolDecoderBase* decoder_base) {
uint32_t hash = 0;
if(!decoder_base->protocol || !decoder_base->protocol->decoder) return hash;

if(decoder_base->protocol && decoder_base->protocol->decoder &&
decoder_base->protocol->decoder->get_hash_data) {
if(decoder_base->protocol->decoder->get_hash_data) {
hash = decoder_base->protocol->decoder->get_hash_data(decoder_base);
} else if(decoder_base->protocol->decoder->get_hash_data_long) {
hash = decoder_base->protocol->decoder->get_hash_data_long(decoder_base);
}

return hash;
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/bett.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ const SubGhzProtocolDecoder subghz_protocol_bett_decoder = {
.feed = subghz_protocol_decoder_bett_feed,
.reset = subghz_protocol_decoder_bett_reset,

.get_hash_data = subghz_protocol_decoder_bett_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_bett_get_hash_data,
.serialize = subghz_protocol_decoder_bett_serialize,
.deserialize = subghz_protocol_decoder_bett_deserialize,
.get_string = subghz_protocol_decoder_bett_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/bin_raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ const SubGhzProtocolDecoder subghz_protocol_bin_raw_decoder = {
.feed = subghz_protocol_decoder_bin_raw_feed,
.reset = subghz_protocol_decoder_bin_raw_reset,

.get_hash_data = subghz_protocol_decoder_bin_raw_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_bin_raw_get_hash_data,
.serialize = subghz_protocol_decoder_bin_raw_serialize,
.deserialize = subghz_protocol_decoder_bin_raw_deserialize,
.get_string = subghz_protocol_decoder_bin_raw_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/came.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ const SubGhzProtocolDecoder subghz_protocol_came_decoder = {
.feed = subghz_protocol_decoder_came_feed,
.reset = subghz_protocol_decoder_came_reset,

.get_hash_data = subghz_protocol_decoder_came_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_came_get_hash_data,
.serialize = subghz_protocol_decoder_came_serialize,
.deserialize = subghz_protocol_decoder_came_deserialize,
.get_string = subghz_protocol_decoder_came_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/came_atomo.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const SubGhzProtocolDecoder subghz_protocol_came_atomo_decoder = {
.feed = subghz_protocol_decoder_came_atomo_feed,
.reset = subghz_protocol_decoder_came_atomo_reset,

.get_hash_data = subghz_protocol_decoder_came_atomo_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_came_atomo_get_hash_data,
.serialize = subghz_protocol_decoder_came_atomo_serialize,
.deserialize = subghz_protocol_decoder_came_atomo_deserialize,
.get_string = subghz_protocol_decoder_came_atomo_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/came_twee.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ const SubGhzProtocolDecoder subghz_protocol_came_twee_decoder = {
.feed = subghz_protocol_decoder_came_twee_feed,
.reset = subghz_protocol_decoder_came_twee_reset,

.get_hash_data = subghz_protocol_decoder_came_twee_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_came_twee_get_hash_data,
.serialize = subghz_protocol_decoder_came_twee_serialize,
.deserialize = subghz_protocol_decoder_came_twee_deserialize,
.get_string = subghz_protocol_decoder_came_twee_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/chamberlain_code.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const SubGhzProtocolDecoder subghz_protocol_chamb_code_decoder = {
.feed = subghz_protocol_decoder_chamb_code_feed,
.reset = subghz_protocol_decoder_chamb_code_reset,

.get_hash_data = subghz_protocol_decoder_chamb_code_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_chamb_code_get_hash_data,
.serialize = subghz_protocol_decoder_chamb_code_serialize,
.deserialize = subghz_protocol_decoder_chamb_code_deserialize,
.get_string = subghz_protocol_decoder_chamb_code_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/clemsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ const SubGhzProtocolDecoder subghz_protocol_clemsa_decoder = {
.feed = subghz_protocol_decoder_clemsa_feed,
.reset = subghz_protocol_decoder_clemsa_reset,

.get_hash_data = subghz_protocol_decoder_clemsa_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_clemsa_get_hash_data,
.serialize = subghz_protocol_decoder_clemsa_serialize,
.deserialize = subghz_protocol_decoder_clemsa_deserialize,
.get_string = subghz_protocol_decoder_clemsa_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/doitrand.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ const SubGhzProtocolDecoder subghz_protocol_doitrand_decoder = {
.feed = subghz_protocol_decoder_doitrand_feed,
.reset = subghz_protocol_decoder_doitrand_reset,

.get_hash_data = subghz_protocol_decoder_doitrand_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_doitrand_get_hash_data,
.serialize = subghz_protocol_decoder_doitrand_serialize,
.deserialize = subghz_protocol_decoder_doitrand_deserialize,
.get_string = subghz_protocol_decoder_doitrand_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/dooya.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const SubGhzProtocolDecoder subghz_protocol_dooya_decoder = {
.feed = subghz_protocol_decoder_dooya_feed,
.reset = subghz_protocol_decoder_dooya_reset,

.get_hash_data = subghz_protocol_decoder_dooya_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_dooya_get_hash_data,
.serialize = subghz_protocol_decoder_dooya_serialize,
.deserialize = subghz_protocol_decoder_dooya_deserialize,
.get_string = subghz_protocol_decoder_dooya_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/faac_slh.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ const SubGhzProtocolDecoder subghz_protocol_faac_slh_decoder = {
.feed = subghz_protocol_decoder_faac_slh_feed,
.reset = subghz_protocol_decoder_faac_slh_reset,

.get_hash_data = subghz_protocol_decoder_faac_slh_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_faac_slh_get_hash_data,
.serialize = subghz_protocol_decoder_faac_slh_serialize,
.deserialize = subghz_protocol_decoder_faac_slh_deserialize,
.get_string = subghz_protocol_decoder_faac_slh_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/gate_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const SubGhzProtocolDecoder subghz_protocol_gate_tx_decoder = {
.feed = subghz_protocol_decoder_gate_tx_feed,
.reset = subghz_protocol_decoder_gate_tx_reset,

.get_hash_data = subghz_protocol_decoder_gate_tx_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_gate_tx_get_hash_data,
.serialize = subghz_protocol_decoder_gate_tx_serialize,
.deserialize = subghz_protocol_decoder_gate_tx_deserialize,
.get_string = subghz_protocol_decoder_gate_tx_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/gt_wt_02.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ const SubGhzProtocolDecoder ws_protocol_gt_wt_02_decoder = {
.feed = ws_protocol_decoder_gt_wt_02_feed,
.reset = ws_protocol_decoder_gt_wt_02_reset,

.get_hash_data = ws_protocol_decoder_gt_wt_02_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_gt_wt_02_get_hash_data,
.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,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/gt_wt_03.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ const SubGhzProtocolDecoder ws_protocol_gt_wt_03_decoder = {
.feed = ws_protocol_decoder_gt_wt_03_feed,
.reset = ws_protocol_decoder_gt_wt_03_reset,

.get_hash_data = ws_protocol_decoder_gt_wt_03_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_gt_wt_03_get_hash_data,
.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,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/holtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const SubGhzProtocolDecoder subghz_protocol_holtek_decoder = {
.feed = subghz_protocol_decoder_holtek_feed,
.reset = subghz_protocol_decoder_holtek_reset,

.get_hash_data = subghz_protocol_decoder_holtek_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_holtek_get_hash_data,
.serialize = subghz_protocol_decoder_holtek_serialize,
.deserialize = subghz_protocol_decoder_holtek_deserialize,
.get_string = subghz_protocol_decoder_holtek_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/holtek_ht12x.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ const SubGhzProtocolDecoder subghz_protocol_holtek_th12x_decoder = {
.feed = subghz_protocol_decoder_holtek_th12x_feed,
.reset = subghz_protocol_decoder_holtek_th12x_reset,

.get_hash_data = subghz_protocol_decoder_holtek_th12x_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_holtek_th12x_get_hash_data,
.serialize = subghz_protocol_decoder_holtek_th12x_serialize,
.deserialize = subghz_protocol_decoder_holtek_th12x_deserialize,
.get_string = subghz_protocol_decoder_holtek_th12x_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/honeywell.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ const SubGhzProtocolDecoder subghz_protocol_honeywell_decoder = {
.free = subghz_protocol_decoder_honeywell_free,
.feed = subghz_protocol_decoder_honeywell_feed,
.reset = subghz_protocol_decoder_honeywell_reset,
.get_hash_data = subghz_protocol_decoder_honeywell_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_honeywell_get_hash_data,
.serialize = subghz_protocol_decoder_honeywell_serialize,
.deserialize = subghz_protocol_decoder_honeywell_deserialize,
.get_string = subghz_protocol_decoder_honeywell_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/honeywell_wdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ const SubGhzProtocolDecoder subghz_protocol_honeywell_wdb_decoder = {
.feed = subghz_protocol_decoder_honeywell_wdb_feed,
.reset = subghz_protocol_decoder_honeywell_wdb_reset,

.get_hash_data = subghz_protocol_decoder_honeywell_wdb_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_honeywell_wdb_get_hash_data,
.serialize = subghz_protocol_decoder_honeywell_wdb_serialize,
.deserialize = subghz_protocol_decoder_honeywell_wdb_deserialize,
.get_string = subghz_protocol_decoder_honeywell_wdb_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/hormann.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const SubGhzProtocolDecoder subghz_protocol_hormann_decoder = {
.feed = subghz_protocol_decoder_hormann_feed,
.reset = subghz_protocol_decoder_hormann_reset,

.get_hash_data = subghz_protocol_decoder_hormann_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_hormann_get_hash_data,
.serialize = subghz_protocol_decoder_hormann_serialize,
.deserialize = subghz_protocol_decoder_hormann_deserialize,
.get_string = subghz_protocol_decoder_hormann_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/ido.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const SubGhzProtocolDecoder subghz_protocol_ido_decoder = {
.feed = subghz_protocol_decoder_ido_feed,
.reset = subghz_protocol_decoder_ido_reset,

.get_hash_data = subghz_protocol_decoder_ido_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_ido_get_hash_data,
.deserialize = subghz_protocol_decoder_ido_deserialize,
.serialize = subghz_protocol_decoder_ido_serialize,
.get_string = subghz_protocol_decoder_ido_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/infactory.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ const SubGhzProtocolDecoder ws_protocol_infactory_decoder = {
.feed = ws_protocol_decoder_infactory_feed,
.reset = ws_protocol_decoder_infactory_reset,

.get_hash_data = ws_protocol_decoder_infactory_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_infactory_get_hash_data,
.serialize = ws_protocol_decoder_infactory_serialize,
.deserialize = ws_protocol_decoder_infactory_deserialize,
.get_string = ws_protocol_decoder_infactory_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/intertechno_v3.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const SubGhzProtocolDecoder subghz_protocol_intertechno_v3_decoder = {
.feed = subghz_protocol_decoder_intertechno_v3_feed,
.reset = subghz_protocol_decoder_intertechno_v3_reset,

.get_hash_data = subghz_protocol_decoder_intertechno_v3_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_intertechno_v3_get_hash_data,
.serialize = subghz_protocol_decoder_intertechno_v3_serialize,
.deserialize = subghz_protocol_decoder_intertechno_v3_deserialize,
.get_string = subghz_protocol_decoder_intertechno_v3_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/kedsum_th.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const SubGhzProtocolDecoder ws_protocol_kedsum_th_decoder = {
.feed = ws_protocol_decoder_kedsum_th_feed,
.reset = ws_protocol_decoder_kedsum_th_reset,

.get_hash_data = ws_protocol_decoder_kedsum_th_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = ws_protocol_decoder_kedsum_th_get_hash_data,
.serialize = ws_protocol_decoder_kedsum_th_serialize,
.deserialize = ws_protocol_decoder_kedsum_th_deserialize,
.get_string = ws_protocol_decoder_kedsum_th_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/keeloq.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const SubGhzProtocolDecoder subghz_protocol_keeloq_decoder = {
.feed = subghz_protocol_decoder_keeloq_feed,
.reset = subghz_protocol_decoder_keeloq_reset,

.get_hash_data = subghz_protocol_decoder_keeloq_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_keeloq_get_hash_data,
.serialize = subghz_protocol_decoder_keeloq_serialize,
.deserialize = subghz_protocol_decoder_keeloq_deserialize,
.get_string = subghz_protocol_decoder_keeloq_get_string,
Expand Down
3 changes: 2 additions & 1 deletion lib/subghz/protocols/kia.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const SubGhzProtocolDecoder subghz_protocol_kia_decoder = {
.feed = subghz_protocol_decoder_kia_feed,
.reset = subghz_protocol_decoder_kia_reset,

.get_hash_data = subghz_protocol_decoder_kia_get_hash_data,
.get_hash_data = NULL,
.get_hash_data_long = subghz_protocol_decoder_kia_get_hash_data,
.serialize = subghz_protocol_decoder_kia_serialize,
.deserialize = subghz_protocol_decoder_kia_deserialize,
.get_string = subghz_protocol_decoder_kia_get_string,
Expand Down
Loading

0 comments on commit ab86ef8

Please sign in to comment.