Skip to content

Commit eb6fe0a

Browse files
Skorpionmskotopes
andauthored
SubGhz: fix count bit for detect gate_tx protocol (#3253)
Co-authored-by: あく <[email protected]>
1 parent c6a14e1 commit eb6fe0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/subghz/protocols/gate_tx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ void subghz_protocol_decoder_gate_tx_feed(void* context, bool level, uint32_t du
227227
if(duration >= ((uint32_t)subghz_protocol_gate_tx_const.te_short * 10 +
228228
subghz_protocol_gate_tx_const.te_delta)) {
229229
instance->decoder.parser_step = GateTXDecoderStepFoundStartBit;
230-
if(instance->decoder.decode_count_bit >=
230+
if(instance->decoder.decode_count_bit ==
231231
subghz_protocol_gate_tx_const.min_count_bit_for_found) {
232232
instance->generic.data = instance->decoder.decode_data;
233233
instance->generic.data_count_bit = instance->decoder.decode_count_bit;

0 commit comments

Comments
 (0)