Fix KL unknown mf cnt bug

This commit is contained in:
Eng1n33r 2023-08-31 22:39:22 +03:00
parent 04b2771e3b
commit b91f8d009e
No known key found for this signature in database
GPG key ID: 7FAD1CA551A0D528

View file

@ -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,