From 7943ba7d91005147944b8e439da031572df65878 Mon Sep 17 00:00:00 2001 From: Jean-Michel Picod Date: Thu, 22 Nov 2018 23:57:30 +0100 Subject: [PATCH] Fix logic op being used instead of bitwise op --- client/cmdsmartcard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdsmartcard.c b/client/cmdsmartcard.c index c9997f241..59172b9c8 100644 --- a/client/cmdsmartcard.c +++ b/client/cmdsmartcard.c @@ -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");