fix: 'data detectclock' - now prints clock again...
This commit is contained in:
@@ -121,7 +121,7 @@ int GetAskClock(const char *str, bool printAns) {
|
|||||||
}
|
}
|
||||||
// Only print this message if we're not looping something
|
// Only print this message if we're not looping something
|
||||||
if (printAns || g_debugMode)
|
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;
|
return clock;
|
||||||
}
|
}
|
||||||
@@ -140,7 +140,7 @@ uint8_t GetPskCarrier(const char *str, bool printAns) {
|
|||||||
if (( fc >> 8) == 10 && carrier == 8) return 0;
|
if (( fc >> 8) == 10 && carrier == 8) return 0;
|
||||||
// Only print this message if we're not looping something
|
// Only print this message if we're not looping something
|
||||||
if (printAns)
|
if (printAns)
|
||||||
PrintAndLogEx(NORMAL, "Auto-detected PSK carrier rate: %d", carrier);
|
PrintAndLogEx(SUCCESS, "Auto-detected PSK carrier rate: %d", carrier);
|
||||||
return carrier;
|
return carrier;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@ int GetPskClock(const char* str, bool printAns) {
|
|||||||
setClockGrid(clock, firstPhaseShiftLoc);
|
setClockGrid(clock, firstPhaseShiftLoc);
|
||||||
// Only print this message if we're not looping something
|
// Only print this message if we're not looping something
|
||||||
if (printAns)
|
if (printAns)
|
||||||
PrintAndLogEx(NORMAL, "Auto-detected clock rate: %d", clock);
|
PrintAndLogEx(SUCCESS, "Auto-detected clock rate: %d", clock);
|
||||||
return clock;
|
return clock;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,7 +184,7 @@ int GetNrzClock(const char* str, bool printAns) {
|
|||||||
setClockGrid(clock, clkStartIdx);
|
setClockGrid(clock, clkStartIdx);
|
||||||
// Only print this message if we're not looping something
|
// Only print this message if we're not looping something
|
||||||
if (printAns)
|
if (printAns)
|
||||||
PrintAndLogEx(NORMAL, "Auto-detected clock rate: %d", clock);
|
PrintAndLogEx(SUCCESS, "Auto-detected clock rate: %d", clock);
|
||||||
return clock;
|
return clock;
|
||||||
}
|
}
|
||||||
//by marshmellow
|
//by marshmellow
|
||||||
@@ -203,7 +203,7 @@ int GetFskClock(const char* str, bool printAns) {
|
|||||||
|
|
||||||
if ((fc1==10 && fc2==8) || (fc1==8 && fc2==5)){
|
if ((fc1==10 && fc2==8) || (fc1==8 && fc2==5)){
|
||||||
if (printAns)
|
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);
|
setClockGrid(rf1, firstClockEdge);
|
||||||
return rf1;
|
return rf1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user