diff --git a/client/src/wiegand_formats.c b/client/src/wiegand_formats.c index 2aa1ea3f1..cfe4d4599 100644 --- a/client/src/wiegand_formats.c +++ b/client/src/wiegand_formats.c @@ -1688,10 +1688,12 @@ bool HIDTryUnpack(wiegand_message_t *packed) { ); } - if (packed->Length && ((found_cnt - found_invalid_par) == 0)) { // if length > 0 and no valid parity matches - 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 + PrintAndLogEx(FAILED, "Parity tests failed"); + } + PrintAndLogEx(NORMAL, ""); } - PrintAndLogEx(NORMAL, ""); return ((found_cnt - found_invalid_par) > 0); }