CHG: removed unused function

This commit is contained in:
iceman1001 2017-11-06 15:08:36 +01:00
commit 423de2ba44
2 changed files with 0 additions and 26 deletions

View file

@ -93,31 +93,6 @@ bool HasGraphData(){
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
int GetAskClock(const char str[], bool printAns, bool verbose) {
int clock;

View file

@ -31,7 +31,6 @@ void setGraphBuf(uint8_t *buff, size_t size);
void save_restoreGB(uint8_t saveOpt);
bool HasGraphData();
void DetectHighLowInGraph(int *high, int *low, bool addFuzz);
// Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample)
#define MAX_GRAPH_TRACE_LEN (40000 * 8 )