ADD: Enio's intuative function for the command: "hw tune", where you plot the tuning-data :)

ADD:  added optional parameter to "hw tune" to show graf direct. Sample usage: "hw tune p"
This commit is contained in:
iceman1001 2014-11-30 19:16:28 +01:00
commit 02306bac2d
4 changed files with 39 additions and 4 deletions

View file

@ -168,13 +168,13 @@ int AvgAdc(int ch) // was static - merlok
void MeasureAntennaTuning(void)
{
uint8_t *dest = (uint8_t *)BigBuf+FREE_BUFFER_OFFSET;
uint8_t *dest = (uint8_t *)BigBuf + FREE_BUFFER_OFFSET;
int i, adcval = 0, peak = 0, peakv = 0, peakf = 0; //ptr = 0
int vLf125 = 0, vLf134 = 0, vHf = 0; // in mV
LED_B_ON();
DbpString("Measuring antenna characteristics, please wait...");
memset(dest,0,sizeof(FREE_BUFFER_SIZE));
memset(dest,0,FREE_BUFFER_SIZE);
/*
* Sweeps the useful LF range of the proxmark from