diff --git a/lib/subghz/protocols/dickert_mahs.c b/lib/subghz/protocols/dickert_mahs.c index 4691e3423..d3c5146f0 100644 --- a/lib/subghz/protocols/dickert_mahs.c +++ b/lib/subghz/protocols/dickert_mahs.c @@ -49,10 +49,12 @@ const SubGhzProtocolDecoder subghz_protocol_dickert_mahs_decoder = { .feed = subghz_protocol_decoder_dickert_mahs_feed, .reset = subghz_protocol_decoder_dickert_mahs_reset, - .get_hash_data = subghz_protocol_decoder_dickert_mahs_get_hash_data, + .get_hash_data = NULL, + .get_hash_data_long = subghz_protocol_decoder_dickert_mahs_get_hash_data, .serialize = subghz_protocol_decoder_dickert_mahs_serialize, .deserialize = subghz_protocol_decoder_dickert_mahs_deserialize, .get_string = subghz_protocol_decoder_dickert_mahs_get_string, + .get_string_brief = NULL, }; const SubGhzProtocolEncoder subghz_protocol_dickert_mahs_encoder = { @@ -341,10 +343,10 @@ void subghz_protocol_decoder_dickert_mahs_feed(void* context, bool level, uint32 } } -uint8_t subghz_protocol_decoder_dickert_mahs_get_hash_data(void* context) { +uint32_t subghz_protocol_decoder_dickert_mahs_get_hash_data(void* context) { furi_assert(context); SubGhzProtocolDecoderDickertMAHS* instance = context; - return subghz_protocol_blocks_get_hash_data( + return subghz_protocol_blocks_get_hash_data_long( &instance->decoder, (instance->decoder.decode_count_bit / 8) + 1); } diff --git a/lib/subghz/protocols/dickert_mahs.h b/lib/subghz/protocols/dickert_mahs.h index 3f682cee0..6051f243d 100644 --- a/lib/subghz/protocols/dickert_mahs.h +++ b/lib/subghz/protocols/dickert_mahs.h @@ -84,7 +84,7 @@ void subghz_protocol_decoder_dickert_mahs_feed(void* context, bool level, uint32 * * @return hash Hash sum */ -uint8_t subghz_protocol_decoder_dickert_mahs_get_hash_data(void* context); +uint32_t subghz_protocol_decoder_dickert_mahs_get_hash_data(void* context); /** Serialize data SubGhzProtocolDecoderDickertMAHS. *