diff --git a/lib/subghz/protocols/raw.c b/lib/subghz/protocols/raw.c index f4b4f337cb8..5e003862769 100644 --- a/lib/subghz/protocols/raw.c +++ b/lib/subghz/protocols/raw.c @@ -323,12 +323,11 @@ void subghz_protocol_decoder_raw_feed(void* context, bool level, uint32_t durati } } -bool subghz_protocol_decoder_raw_deserialize(void* context, FlipperFormat* flipper_format) { +uint8_t subghz_protocol_decoder_raw_get_hash_data(void* context) { furi_assert(context); - UNUSED(context); - UNUSED(flipper_format); - //ToDo stub, for backwards compatibility - return true; + SubGhzProtocolDecoderRAW* instance = context; + return subghz_protocol_blocks_get_hash_data( + &instance->decoder, (instance->decoder.decode_count_bit / 8) + 1); } uint8_t subghz_protocol_decoder_raw_get_hash_data(void* context) { diff --git a/lib/subghz/protocols/raw.h b/lib/subghz/protocols/raw.h index 7dce0d2899a..7f41f7d71e7 100644 --- a/lib/subghz/protocols/raw.h +++ b/lib/subghz/protocols/raw.h @@ -84,12 +84,11 @@ bool subghz_protocol_decoder_raw_write_data(void* context, bool level, uint32_t void subghz_protocol_decoder_raw_feed(void* context, bool level, uint32_t duration); /** - * Deserialize data SubGhzProtocolDecoderRAW. + * Getting the hash sum of the last randomly received parcel. * @param context Pointer to a SubGhzProtocolDecoderRAW instance - * @param flipper_format Pointer to a FlipperFormat instance - * @return true On success + * @return hash Hash sum */ -bool subghz_protocol_decoder_raw_deserialize(void* context, FlipperFormat* flipper_format); +uint8_t subghz_protocol_decoder_raw_get_hash_data(void* context); /** * Getting the hash sum of the last randomly received parcel.