1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 12:42:30 +04:00

Try to decode BFT 2 buttons remotes on the fly

This commit is contained in:
MX
2025-09-30 02:07:29 +03:00
parent f4529dc8c1
commit 3e45fce96d

View File

@@ -858,6 +858,11 @@ static uint8_t subghz_protocol_keeloq_check_remote_controller_selector(
} }
break; break;
case KEELOQ_LEARNING_SECURE: case KEELOQ_LEARNING_SECURE:
if((strcmp(furi_string_get_cstr(manufacture_code->name), "BFT") == 0)) {
if(instance->seed == 0) {
instance->seed = (fix & 0xFFFFFFF);
}
}
man = subghz_protocol_keeloq_common_secure_learning( man = subghz_protocol_keeloq_common_secure_learning(
fix, instance->seed, manufacture_code->key); fix, instance->seed, manufacture_code->key);
decrypt = subghz_protocol_keeloq_common_decrypt(hop, man); decrypt = subghz_protocol_keeloq_common_decrypt(hop, man);