]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/graph.c
FIX: moved from lfdemod.c -> graph.c SetGraphClock.
[proxmark3-svn] / client / graph.c
index a0ba46d5b86432a3630fcc22c4754949086a303c..91fecff862c9189245f2e33e84e8a3def949e981 100644 (file)
@@ -123,6 +123,11 @@ void DetectHighLowInGraph(int *high, int *low, bool addFuzz) {
        }
 }
 
+void SetGraphClock( int clock, int startidx){
+       PlotClock = clock;
+       PlockClockStartIndex = startidx;        
+}
+
 // Get or auto-detect ask clock rate
 int GetAskClock(const char str[], bool printAns, bool verbose)
 {
@@ -149,6 +154,7 @@ int GetAskClock(const char str[], bool printAns, bool verbose)
        // Only print this message if we're not looping something
        if (printAns)
                PrintAndLog("Auto-detected clock rate: %d, Best Starting Position: %d", clock, start);
+       SetGraphClock(clock, start);
        return clock;
 }
 
Impressum, Datenschutz