Merge pull request #58 from jmichelp/patch-1

Fix logic op being used instead of bitwise op
This commit is contained in:
RFID Research Group 2018-11-23 00:41:32 +01:00 committed by GitHub
commit 7d8f69f8bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -344,7 +344,7 @@ int CmdSmartUpgrade(const char *Cmd) {
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
return 1;
}
if ( (resp.arg[0] && 0xFF ) )
if ( (resp.arg[0] & 0xFF ) )
PrintAndLogEx(SUCCESS, "Smartcard socket firmware upgraded successful");
else
PrintAndLogEx(FAILED, "Smartcard socket firmware updating failed");