From 07a23b202cdeda89dfb2075987c2f260a0a5d426 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 9 Oct 2019 13:56:01 +0200 Subject: [PATCH] coverity 226308 - fix logically dead code --- include/protocols.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/protocols.h b/include/protocols.h index 747e4e346..4eb3ab58c 100644 --- a/include/protocols.h +++ b/include/protocols.h @@ -133,7 +133,7 @@ ISO 7816-4 Basic interindustry commands. For command APDU's. #define ICLASS_CMD_READ_OR_IDENTIFY 0xC #define ICLASS_CMD_ACT 0xE -#define ICLASS_CREDIT(x) (((x) & 0x5) == 1) +#define ICLASS_CREDIT(x) (((x) & 0x5) == 0x5) #define ICLASS_DEBIT(x) (((x) & 0x5) == 0)