mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 06:50:21 +00:00
Fix KL unknown mf cnt bug
This commit is contained in:
parent
04b2771e3b
commit
b91f8d009e
1 changed files with 18 additions and 1 deletions
|
@ -990,7 +990,7 @@ static void subghz_protocol_keeloq_check_remote_controller(
|
|||
instance->cnt = temp_counter;
|
||||
} else {
|
||||
// Counter protection
|
||||
furi_crash("Unsuported Prog Mode");
|
||||
furi_crash("Unsupported Prog Mode");
|
||||
}
|
||||
|
||||
instance->serial = key_fix & 0x0FFFFFFF;
|
||||
|
@ -1249,6 +1249,23 @@ void subghz_protocol_decoder_keeloq_get_string(void* context, FuriString* output
|
|||
instance->generic.btn,
|
||||
instance->manufacture_name,
|
||||
instance->generic.seed);
|
||||
} else if(strcmp(instance->manufacture_name, "Unknown") == 0) {
|
||||
instance->generic.cnt = 0x0;
|
||||
furi_string_cat_printf(
|
||||
output,
|
||||
"%s %dbit\r\n"
|
||||
"Key:%08lX%08lX\r\n"
|
||||
"Fix:0x%08lX Cnt:????\r\n"
|
||||
"Hop:0x%08lX Btn:%01X\r\n"
|
||||
"MF:%s",
|
||||
instance->generic.protocol_name,
|
||||
instance->generic.data_count_bit,
|
||||
code_found_hi,
|
||||
code_found_lo,
|
||||
code_found_reverse_hi,
|
||||
code_found_reverse_lo,
|
||||
instance->generic.btn,
|
||||
instance->manufacture_name);
|
||||
} else {
|
||||
furi_string_cat_printf(
|
||||
output,
|
||||
|
|
Loading…
Reference in a new issue