a bit of fixes

This commit is contained in:
MX
2022-08-06 05:18:05 +03:00
parent 903e6ec203
commit ffc3b634b8
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -905,6 +905,11 @@ bool subghz_protocol_decoder_keeloq_deserialize(void* context, FlipperFormat* fl
FURI_LOG_E(TAG, "Deserialize error");
break;
}
if(instance->generic.data_count_bit !=
subghz_protocol_keeloq_const.min_count_bit_for_found) {
FURI_LOG_E(TAG, "Wrong number of bits in key");
break;
}
if(!flipper_format_rewind(flipper_format)) {
FURI_LOG_E(TAG, "Rewind error");
break;