mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 10:11:58 +08:00
swapping order
This commit is contained in:
parent
cc9a99ed57
commit
1d14c497b7
1 changed files with 5 additions and 5 deletions
|
@ -808,21 +808,21 @@ int EM4x50Read(const char *Cmd, bool verbose) {
|
||||||
low = sp->low;
|
low = sp->low;
|
||||||
|
|
||||||
// get to first full low to prime loop and skip incomplete first pulse
|
// get to first full low to prime loop and skip incomplete first pulse
|
||||||
while ((bits[i] < high) && (i < size))
|
while ((i < size) && (bits[i] < high))
|
||||||
++i;
|
++i;
|
||||||
while ((bits[i] > low) && (i < size))
|
while ((i < size) && (bits[i] > low))
|
||||||
++i;
|
++i;
|
||||||
skip = i;
|
skip = i;
|
||||||
|
|
||||||
// populate tmpbuff buffer with pulse lengths
|
// populate tmpbuff buffer with pulse lengths
|
||||||
while (i < size) {
|
while (i < size) {
|
||||||
// measure from low to low
|
// measure from low to low
|
||||||
while ((bits[i] > low) && (i < size))
|
while ((i < size) && (bits[i] > low))
|
||||||
++i;
|
++i;
|
||||||
start = i;
|
start = i;
|
||||||
while ((bits[i] < high) && (i < size))
|
while ((i < size) && (bits[i] < high))
|
||||||
++i;
|
++i;
|
||||||
while ((bits[i] > low) && (i < size))
|
while ((i < size) && (bits[i] > low))
|
||||||
++i;
|
++i;
|
||||||
if (j >= (MAX_GRAPH_TRACE_LEN / 64)) {
|
if (j >= (MAX_GRAPH_TRACE_LEN / 64)) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue