From 6bc0e05178380eef80eca8b648ab2c05edc7aa7f Mon Sep 17 00:00:00 2001 From: r3df0xx Date: Tue, 26 Apr 2022 09:33:40 +0300 Subject: [PATCH] Update faac_slh.c --- lib/subghz/protocols/faac_slh.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/subghz/protocols/faac_slh.c b/lib/subghz/protocols/faac_slh.c index 369b14294..bd05f413b 100644 --- a/lib/subghz/protocols/faac_slh.c +++ b/lib/subghz/protocols/faac_slh.c @@ -89,7 +89,7 @@ static void subghz_protocol_faac_slh_check_remote_controller (SubGhzBlockGeneric* instance, SubGhzKeystore* keystore, const char** manufacture_name, - uint32_t* seed); + uint32_t seed); void* subghz_protocol_encoder_faac_slh_alloc(SubGhzEnvironment* environment) { SubGhzProtocolEncoderFaacSLH* instance = malloc(sizeof(SubGhzProtocolEncoderFaacSLH)); @@ -184,7 +184,7 @@ bool subghz_protocol_faac_slh_create_data( bool res = subghz_protocol_faac_slh_gen_data(instance, instance->generic.seed); FURI_LOG_I(TAG, "SEED (create_data): %8X\n", instance->generic.seed); if(res) { - subghz_protocol_faac_slh_check_remote_controller(&instance->generic, instance->keystore, &instance->manufacture_name, &instance->generic.seed); + subghz_protocol_faac_slh_check_remote_controller(&instance->generic, instance->keystore, &instance->manufacture_name, instance->generic.seed); res = subghz_block_generic_serialize(&instance->generic, flipper_format, frequency, preset); } return res; @@ -249,7 +249,7 @@ bool subghz_protocol_encoder_faac_slh_deserialize(void* context, FlipperFormat* } subghz_protocol_faac_slh_check_remote_controller( - &instance->generic, instance->keystore, &instance->manufacture_name, &instance->generic.seed); + &instance->generic, instance->keystore, &instance->manufacture_name, instance->generic.seed); //optional parameter parameter flipper_format_read_uint32( @@ -401,10 +401,10 @@ static void subghz_protocol_faac_slh_check_remote_controller (SubGhzBlockGeneric* instance, SubGhzKeystore* keystore, const char** manufacture_name, - uint32_t* seed) { + uint32_t seed) { //uint64_t code_found_reverse = //subghz_protocol_blocks_reverse_key(instance->data, instance->data_count_bit); - instance->seed = *seed; + instance->seed = seed; FURI_LOG_I(TAG, "SEED (decrypt init): %8X\n", instance->seed); uint32_t code_fix = instance->data >> 32; uint32_t code_hop = instance->data & 0xFFFFFFFF; @@ -467,7 +467,7 @@ bool subghz_protocol_decoder_faac_slh_deserialize(void* context, FlipperFormat* void subghz_protocol_decoder_faac_slh_get_string(void* context, string_t output) { furi_assert(context); SubGhzProtocolDecoderFaacSLH* instance = context; - subghz_protocol_faac_slh_check_remote_controller(&instance->generic, instance->keystore, &instance->manufacture_name, &instance->generic.seed); + subghz_protocol_faac_slh_check_remote_controller(&instance->generic, instance->keystore, &instance->manufacture_name, instance->generic.seed); //uint64_t code_found_reverse = subghz_protocol_blocks_reverse_key( //instance->generic.data, instance->generic.data_count_bit); uint32_t code_fix = instance->generic.data >> 32;