Fix logic op being used instead of bitwise op

This commit is contained in:
Jean-Michel Picod
2018-11-22 23:57:30 +01:00
committed by GitHub
parent b6866ee8f5
commit 7943ba7d91

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");