fix y grid +

and move em4x50 saveGB to allow graph restore after lf search
clean up plotgraph unused code.
should be done for a bit...
This commit is contained in:
marshmellow42 2017-04-16 00:26:26 -04:00
commit 999d57c201
3 changed files with 74 additions and 56 deletions

View file

@ -474,9 +474,6 @@ int EM4x50Read(const char *Cmd, bool verbose)
// get user entry if any
sscanf(Cmd, "%i %i", &clk, &invert);
// save GraphBuffer - to restore it later
save_restoreGB(1);
// first get high and low values
for (i = 0; i < GraphTraceLen; i++) {
if (GraphBuffer[i] > high)
@ -573,6 +570,8 @@ int EM4x50Read(const char *Cmd, bool verbose)
} else if (start < 0) return 0;
start = skip;
snprintf(tmp2, sizeof(tmp2),"%d %d 1000 %d", clk, invert, clk*47);
// save GraphBuffer - to restore it later
save_restoreGB(1);
// get rid of leading crap
snprintf(tmp, sizeof(tmp), "%i", skip);
CmdLtrim(tmp);