]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/graph.c
Minor corrections in fskdemod i lfops.c , see Holimans branch.
[proxmark3-svn] / client / graph.c
index 4a966676539f2c541cc7a1dd03be1ce6cb929075..8974f4c32567bc30af8b9348f4395cb7bd52cc72 100644 (file)
@@ -1,4 +1,15 @@
+//-----------------------------------------------------------------------------
+// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
+//
+// This code is licensed to you under the terms of the GNU GPL, version 2 or,
+// at your option, any later version. See the LICENSE.txt file for the text of
+// the license.
+//-----------------------------------------------------------------------------
+// Graph utilities
+//-----------------------------------------------------------------------------
+
 #include <stdio.h>
+#include <stdbool.h>
 #include <string.h>
 #include "ui.h"
 #include "graph.h"
@@ -83,3 +94,15 @@ int GetClock(const char *str, int peak, int verbose)
 
   return clock;
 }
+
+
+/* A simple test to see if there is any data inside Graphbuffer. 
+*/
+bool HasGraphData(){
+
+       if ( GraphTraceLen <= 0) {
+               PrintAndLog("No data available, try reading something first");
+               return false;
+       }
+       return true;    
+}
\ No newline at end of file
Impressum, Datenschutz