Skip to content

Commit

Permalink
merge fixes [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Sep 9, 2024
1 parent 7711b2d commit b6644d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/lfrfid/protocols/protocol_gproxii.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ static bool protocol_gproxii_can_be_decoded(ProtocolGProxII* protocol) {
if(bit_lib_get_bits(protocol->data, 0, 6) != 0b111110) return false;

// Check always 0 parity on every 5th bit after preamble
if(!bit_lib_test_parity(protocol->data, 6, GPROXII_ENCODED_BIT_SIZE, BitLibParityAlways0, 5))
if(!bit_lib_test_parity(protocol->data, 6, GPROXII_ENCODED_BIT_SIZE, BitLibParityAlways0, 5)) {
return false;
}

// Start GProx II decode
bit_lib_copy_bits(protocol->decoded_data, 0, GPROXII_ENCODED_BIT_SIZE, protocol->data, 6);
Expand Down

0 comments on commit b6644d7

Please sign in to comment.