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

Beninca support

This commit is contained in:
MX
2023-02-25 23:10:59 +03:00
parent ba09da107a
commit 4dbb55d740
2 changed files with 6 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ Encoders/sending made by Eng1n33r & @xMasterX:
- Keeloq: FAAC RC,XT - Keeloq: FAAC RC,XT
- Keeloq: Mutancode - Keeloq: Mutancode
- Keeloq: Normstahl - Keeloq: Normstahl
- Keeloq: Beninca
- CAME Atomo - CAME Atomo
- Nice Flor S - Nice Flor S
- FAAC SLH (Spa) [External seed calculation required (For info contact me in Discord: Nano#8998)] - FAAC SLH (Spa) [External seed calculation required (For info contact me in Discord: Nano#8998)]

View File

@@ -193,6 +193,11 @@ static bool subghz_protocol_keeloq_gen_data(
decrypt = btn << 28 | (instance->generic.serial & 0xFF) << 16 | instance->generic.cnt; decrypt = btn << 28 | (instance->generic.serial & 0xFF) << 16 | instance->generic.cnt;
} }
// Beninca -> 4bit serial - simple XOR
if(strcmp(instance->manufacture_name, "Beninca") == 0) {
decrypt = btn << 28 | (instance->generic.serial & 0xF) << 16 | instance->generic.cnt;
}
if(strcmp(instance->manufacture_name, "Unknown") == 0) { if(strcmp(instance->manufacture_name, "Unknown") == 0) {
code_found_reverse = subghz_protocol_blocks_reverse_key( code_found_reverse = subghz_protocol_blocks_reverse_key(
instance->generic.data, instance->generic.data_count_bit); instance->generic.data, instance->generic.data_count_bit);