Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/subghz/protocols/star_line.c')
-rw-r--r--lib/subghz/protocols/star_line.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/subghz/protocols/star_line.c b/lib/subghz/protocols/star_line.c
index 5a1c9b74..757b5662 100644
--- a/lib/subghz/protocols/star_line.c
+++ b/lib/subghz/protocols/star_line.c
@@ -332,6 +332,11 @@ bool subghz_protocol_decoder_star_line_serialize(
FURI_LOG_E(TAG, "Unable to add manufacture name");
res = false;
}
+ if(res && instance->generic.data_count_bit !=
+ subghz_protocol_star_line_const.min_count_bit_for_found) {
+ FURI_LOG_E(TAG, "Wrong number of bits in key");
+ res = false;
+ }
return res;
}