Some more nasty bugs fixed in the lf t55xx manchester_decode method.

ADD: a little function to see if GraphBuffer is not used.
This commit is contained in:
iceman1001
2014-10-26 23:16:25 +01:00
parent db297e69e1
commit c6be64da09
7 changed files with 54 additions and 34 deletions

View File

@@ -9,6 +9,7 @@
//-----------------------------------------------------------------------------
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include "ui.h"
#include "graph.h"
@@ -93,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;
}