mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-24 11:14:26 +03:00
Update faac_slh.c
debugging strange cnt behavior
This commit is contained in:
parent
43a9df04c9
commit
75e38d3e52
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user