mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
CHG: removed unused function
This commit is contained in:
parent
881c7115a7
commit
423de2ba44
2 changed files with 0 additions and 26 deletions
|
@ -93,31 +93,6 @@ bool HasGraphData(){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Detect high and lows in Grapbuffer.
|
|
||||||
// Only loops the first 256 values.
|
|
||||||
// Optional: 12% fuzz in case highs and lows aren't clipped
|
|
||||||
void DetectHighLowInGraph(int *high, int *low, bool addFuzz) {
|
|
||||||
|
|
||||||
uint8_t loopMax = 255;
|
|
||||||
if ( loopMax > GraphTraceLen)
|
|
||||||
loopMax = GraphTraceLen;
|
|
||||||
|
|
||||||
*high = -255; *low = 255;
|
|
||||||
|
|
||||||
for (uint8_t i = 0; i < loopMax; ++i) {
|
|
||||||
if (GraphBuffer[i] > *high) *high = GraphBuffer[i];
|
|
||||||
if (GraphBuffer[i] < *low) *low = GraphBuffer[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
//12% fuzz in case highs and lows aren't clipped
|
|
||||||
if (addFuzz) {
|
|
||||||
*high *= .88;
|
|
||||||
*low *= .88;
|
|
||||||
//*high = (int)(*high * .88);
|
|
||||||
//*low = (int)(*low * .88);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get or auto-detect ask clock rate
|
// Get or auto-detect ask clock rate
|
||||||
int GetAskClock(const char str[], bool printAns, bool verbose) {
|
int GetAskClock(const char str[], bool printAns, bool verbose) {
|
||||||
int clock;
|
int clock;
|
||||||
|
|
|
@ -31,7 +31,6 @@ void setGraphBuf(uint8_t *buff, size_t size);
|
||||||
void save_restoreGB(uint8_t saveOpt);
|
void save_restoreGB(uint8_t saveOpt);
|
||||||
|
|
||||||
bool HasGraphData();
|
bool HasGraphData();
|
||||||
void DetectHighLowInGraph(int *high, int *low, bool addFuzz);
|
|
||||||
|
|
||||||
// Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample)
|
// Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample)
|
||||||
#define MAX_GRAPH_TRACE_LEN (40000 * 8 )
|
#define MAX_GRAPH_TRACE_LEN (40000 * 8 )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue