We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75ba4e9 commit b65797bCopy full SHA for b65797b
client/src/wiegand_formats.c
@@ -1688,10 +1688,12 @@ bool HIDTryUnpack(wiegand_message_t *packed) {
1688
);
1689
}
1690
1691
- if (packed->Length && ((found_cnt - found_invalid_par) == 0)) { // if length > 0 and no valid parity matches
1692
- PrintAndLogEx(FAILED, "Parity tests failed");
+ if(found_cnt > 0){
+ if (packed->Length && ((found_cnt - found_invalid_par) == 0)) { // if length > 0 and no valid parity matches
1693
+ PrintAndLogEx(FAILED, "Parity tests failed");
1694
+ }
1695
+ PrintAndLogEx(NORMAL, "");
1696
- PrintAndLogEx(NORMAL, "");
1697
1698
return ((found_cnt - found_invalid_par) > 0);
1699
0 commit comments