Update faac_slh.c

debugging strange cnt behavior
This commit is contained in:
r3df0xx 2022-04-09 03:39:03 +03:00
parent 43a9df04c9
commit 75e38d3e52

View File

@ -140,7 +140,11 @@ static bool subghz_protocol_faac_slh_gen_data(SubGhzProtocolEncoderFaacSLH* inst
//FAAC Learning
man =
subghz_protocol_keeloq_common_faac_learning(seed, manufacture_code->key);
uint32_t hi = man >> 32;
uint32_t lo = man & 0xFFFFFFFF;
FURI_LOG_I("man_learning: %8X%8X\n", hi, lo);
hop = subghz_protocol_keeloq_common_encrypt(decrypt, man);
FURI_LOG_I("hop: %8X\n" hop);
break;
}
break;
@ -408,8 +412,12 @@ static void subghz_protocol_faac_slh_check_remote_controller
case KEELOQ_LEARNING_FAAC:
// FAAC Learning
man = subghz_protocol_keeloq_common_faac_learning(seed, manufacture_code->key);
FURI_LOG_I(TAG, "mfkey: %08lX%08lX mf: %s", hi, lo, manufacture_code->name);
FURI_LOG_I(TAG, "mfkey: %08lX%08lX mf: %s\n", hi, lo, manufacture_code->name);
uint32_t himl = man >> 32;
uint32_t loml = man & 0xFFFFFFFF;
FURI_LOG_I("man_learning: %8X%8X\n", himl, loml);
decrypt = subghz_protocol_keeloq_common_decrypt(code_hop, man);
FURI_LOG_I("hop: %8X\n" code_hop);
*manufacture_name = string_get_cstr(manufacture_code->name);
break;
}