Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
CHG: Thanks to @Mackwa for looking up the expected Desfire EV2 major …
Browse files Browse the repository at this point in the history
…version byte.
  • Loading branch information
iceman1001 committed Jun 14, 2016
1 parent 5558d93 commit d118e70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/cmdhfmfdes.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ char * GetVersionStr(uint8_t major, uint8_t minor){
static char buf[30] = {0x00};
char *retStr = buf;

if ( major == 0)
if ( major == 0x00)
sprintf(retStr,"%d.%d (Desfire MF3ICD40)", major, minor);
else if ( major == 1 && minor == 1)
else if ( major == 0x01 && minor == 0x01)
sprintf(retStr,"%d.%d (Desfire EV1)", major, minor);
else if ( major == 1 && minor == 2)
else if ( major == 0x12 && minor == 0x00)
sprintf(retStr,"%d.%d (Desfire EV2)", major, minor);
else
sprintf(retStr,"%d.%d (Unknown)", major, minor);
Expand Down

0 comments on commit d118e70

Please sign in to comment.