Update faac_slh.c

more logging
This commit is contained in:
r3df0xx 2022-05-21 03:29:31 +03:00
parent 96fda49dcc
commit a10b337008

View file

@ -139,6 +139,7 @@ static bool subghz_protocol_faac_slh_gen_data(SubGhzProtocolEncoderFaacSLH* inst
switch(manufacture_code->type) { switch(manufacture_code->type) {
case KEELOQ_LEARNING_FAAC: case KEELOQ_LEARNING_FAAC:
//FAAC Learning //FAAC Learning
FURI_LOG_I(TAG, "seed gen data = %8X", instance->generic.seed);
man = subghz_protocol_keeloq_common_faac_learning(instance->generic.seed, manufacture_code->key); man = subghz_protocol_keeloq_common_faac_learning(instance->generic.seed, manufacture_code->key);
hop = subghz_protocol_keeloq_common_encrypt(decrypt, man); hop = subghz_protocol_keeloq_common_encrypt(decrypt, man);
break; break;
@ -398,6 +399,7 @@ static void subghz_protocol_faac_slh_check_remote_controller
SubGhzKeystore* keystore, SubGhzKeystore* keystore,
const char** manufacture_name) { const char** manufacture_name) {
instance->seed = seed_global; instance->seed = seed_global;
FURI_LOG_I(TAG, "seed check = %8X", instance->seed);
uint32_t code_fix = instance->data >> 32; uint32_t code_fix = instance->data >> 32;
uint32_t code_hop = instance->data & 0xFFFFFFFF; uint32_t code_hop = instance->data & 0xFFFFFFFF;
instance->serial = code_fix >> 4; instance->serial = code_fix >> 4;