This commit is contained in:
iceman1001 2019-02-25 00:15:39 +01:00
commit 7945b5a805
2 changed files with 8 additions and 8 deletions

View file

@ -959,8 +959,8 @@ int detect_classic_nackbug(bool verbose){
} }
return 2; return 2;
} }
case 2 : PrintAndLogEx(SUCCESS, "always leak NACK detected"); return 3; case 2 : PrintAndLogEx(SUCCESS, _GREEN_(always leak NACK detected)); return 3;
case 1 : PrintAndLogEx(SUCCESS, "NACK bug detected"); return 1; case 1 : PrintAndLogEx(SUCCESS, _GREEN_(NACK bug detected)); return 1;
case 0 : PrintAndLogEx(SUCCESS, "No NACK bug detected"); return 2; case 0 : PrintAndLogEx(SUCCESS, "No NACK bug detected"); return 2;
default : PrintAndLogEx(WARNING, "errorcode from device [%i]", ok); return 0; default : PrintAndLogEx(WARNING, "errorcode from device [%i]", ok); return 0;
} }
@ -981,9 +981,9 @@ void detect_classic_magic(void) {
isGeneration = resp.arg[0] & 0xff; isGeneration = resp.arg[0] & 0xff;
switch( isGeneration ){ switch( isGeneration ){
case 1: PrintAndLogEx(SUCCESS, "Answers to magic commands (GEN 1a): YES"); break; case 1: PrintAndLogEx(SUCCESS, "Answers to magic commands (GEN 1a): " _GREEN_(YES)); break;
case 2: PrintAndLogEx(SUCCESS, "Answers to magic commands (GEN 1b): YES"); break; case 2: PrintAndLogEx(SUCCESS, "Answers to magic commands (GEN 1b): " _GREEN_(YES)); break;
//case 4: PrintAndLogEx(SUCCESS, "Answers to magic commands (GEN 2): YES"); break; //case 4: PrintAndLogEx(SUCCESS, "Answers to magic commands (GEN 2): " _GREEN_(YES)); break;
default: PrintAndLogEx(INFO, "Answers to magic commands: NO"); break; default: PrintAndLogEx(INFO, "Answers to magic commands: " _YELLOW_(NO)); break;
} }
} }

View file

@ -77,7 +77,7 @@ static void resetSignal(void) {
signalprop.isnoise = true; signalprop.isnoise = true;
} }
static void printSignal(void) { static void printSignal(void) {
prnt("LF Signal properties:"); prnt("LF signal properties:");
prnt(" high..........%d", signalprop.high); prnt(" high..........%d", signalprop.high);
prnt(" low...........%d", signalprop.low); prnt(" low...........%d", signalprop.low);
prnt(" mean..........%d", signalprop.mean); prnt(" mean..........%d", signalprop.mean);