diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 5f3bb0ece..f5031ec5e 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -424,16 +424,26 @@ static const char *getProductTypeStr(const uint8_t *versionhw) { uint8_t product = versionhw[1]; - if (product == 0x01) + if (product == 0x01) { return "MIFARE DESFire native IC (physical card)"; - if (product == 0x08) + } + + if (product == 0x08) { return "MIFARE DESFire Light native IC (physical card)"; - if (product == 0x81 || product == 0x83) + } + + if (product == 0x81 || product == 0x83) { return "MIFARE DESFire implementation on microcontroller (physical card)"; - if (product == 0x91) + } + + if (product == 0x91) { return "MIFARE DESFire applet on Java card / secure element"; - if (product == 0xA1) + } + + if (product == 0xA1) { return "MIFARE DESFire HCE (MIFARE 2GO)"; + } + return "UNKNOWN PROD"; } diff --git a/client/src/cmdhfmfdes.h b/client/src/cmdhfmfdes.h index 0eddcf6cf..14cf3e414 100644 --- a/client/src/cmdhfmfdes.h +++ b/client/src/cmdhfmfdes.h @@ -49,7 +49,7 @@ typedef enum { DUOX, } nxp_cardtype_t; -typedef struct { +typedef struct mfdes_info_res { uint8_t isOK; uint8_t uid[7]; uint8_t uidlen;