X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ab812dfae5f0b2ac3fbc127f293ff65d85922ed7..f75b313b002369372bc97066a90a1593ebc2e25c:/common/lfdemod.c diff --git a/common/lfdemod.c b/common/lfdemod.c index b067098d..3f597a1f 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -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