fix stt mark location bug

add `data mtrim` to do a middle trim of the graph.
This commit is contained in:
marshmellow42 2017-02-28 17:28:51 -05:00
parent ab812dfae5
commit f75b313b00
2 changed files with 20 additions and 3 deletions

View file

@ -1770,8 +1770,8 @@ bool DetectST_ext(uint8_t buffer[], size_t *size, int *foundclock, size_t *ststa
buffer[dataloc+1] = buffer[dataloc+2];
}
if (firstrun) {
*ststart = dataloc;
*stend = dataloc+(clk*4);
*stend = dataloc;
*ststart = dataloc-(clk*4);
firstrun=false;
}
for (i=0; i<datalen; ++i) {