fix coverity

This commit is contained in:
iceman1001 2020-10-16 17:09:27 +02:00
parent 867750b7ee
commit c85962f815

View file

@ -71,7 +71,7 @@ int demodDestron(bool verbose) {
parity_err += oddparity8(data[i]); parity_err += oddparity8(data[i]);
data[i] &= 0x7F; data[i] &= 0x7F;
} }
if (errCnt > 0) { if (parity_err > 0) {
PrintAndLogEx(DEBUG, "DEBUG: Error - Destron: parity errors: %d", parity_err); PrintAndLogEx(DEBUG, "DEBUG: Error - Destron: parity errors: %d", parity_err);
return PM3_ESOFT; return PM3_ESOFT;
} }