fix: 'data detectclock' - now prints clock again...

This commit is contained in:
iceman1001 2019-02-25 15:07:31 +01:00
commit 64bae8c8be

View file

@ -121,7 +121,7 @@ int GetAskClock(const char *str, bool printAns) {
}
// Only print this message if we're not looping something
if (printAns || g_debugMode)
PrintAndLogEx(DEBUG, "Auto-detected clock rate: %d, Best Starting Position: %d", clock, idx);
PrintAndLogEx(SUCCESS, "Auto-detected clock rate: %d, Best Starting Position: %d", clock, idx);
return clock;
}
@ -140,7 +140,7 @@ uint8_t GetPskCarrier(const char *str, bool printAns) {
if (( fc >> 8) == 10 && carrier == 8) return 0;
// Only print this message if we're not looping something
if (printAns)
PrintAndLogEx(NORMAL, "Auto-detected PSK carrier rate: %d", carrier);
PrintAndLogEx(SUCCESS, "Auto-detected PSK carrier rate: %d", carrier);
return carrier;
}
@ -162,7 +162,7 @@ int GetPskClock(const char* str, bool printAns) {
setClockGrid(clock, firstPhaseShiftLoc);
// Only print this message if we're not looping something
if (printAns)
PrintAndLogEx(NORMAL, "Auto-detected clock rate: %d", clock);
PrintAndLogEx(SUCCESS, "Auto-detected clock rate: %d", clock);
return clock;
}
@ -184,7 +184,7 @@ int GetNrzClock(const char* str, bool printAns) {
setClockGrid(clock, clkStartIdx);
// Only print this message if we're not looping something
if (printAns)
PrintAndLogEx(NORMAL, "Auto-detected clock rate: %d", clock);
PrintAndLogEx(SUCCESS, "Auto-detected clock rate: %d", clock);
return clock;
}
//by marshmellow
@ -203,7 +203,7 @@ int GetFskClock(const char* str, bool printAns) {
if ((fc1==10 && fc2==8) || (fc1==8 && fc2==5)){
if (printAns)
PrintAndLogEx(NORMAL, "Detected Field Clocks: FC/%d, FC/%d - Bit Clock: RF/%d", fc1, fc2, rf1);
PrintAndLogEx(SUCCESS, "Detected Field Clocks: FC/%d, FC/%d - Bit Clock: RF/%d", fc1, fc2, rf1);
setClockGrid(rf1, firstClockEdge);
return rf1;
}