mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-16 04:09:10 +08:00
styles
This commit is contained in:
parent
e95955b793
commit
8aa5dec805
1 changed files with 2 additions and 4 deletions
|
@ -446,9 +446,8 @@ int CmdIndalaDemodAlt(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checking UID against next occurrences
|
// Checking UID against next occurrences
|
||||||
int failed = 0;
|
|
||||||
for (; i + uidlen <= rawbit;) {
|
for (; i + uidlen <= rawbit;) {
|
||||||
failed = 0;
|
int failed = 0;
|
||||||
for (bit = 0; bit < uidlen; bit++) {
|
for (bit = 0; bit < uidlen; bit++) {
|
||||||
if (bits[bit] != rawbits[i++]) {
|
if (bits[bit] != rawbits[i++]) {
|
||||||
failed = 1;
|
failed = 1;
|
||||||
|
@ -468,14 +467,13 @@ int CmdIndalaDemodAlt(const char *Cmd) {
|
||||||
// since this changes graphbuffer data.
|
// since this changes graphbuffer data.
|
||||||
GraphTraceLen = 32 * uidlen;
|
GraphTraceLen = 32 * uidlen;
|
||||||
i = 0;
|
i = 0;
|
||||||
int phase = 0;
|
int phase;
|
||||||
for (bit = 0; bit < uidlen; bit++) {
|
for (bit = 0; bit < uidlen; bit++) {
|
||||||
if (bits[bit] == 0) {
|
if (bits[bit] == 0) {
|
||||||
phase = 0;
|
phase = 0;
|
||||||
} else {
|
} else {
|
||||||
phase = 1;
|
phase = 1;
|
||||||
}
|
}
|
||||||
int j;
|
|
||||||
for (j = 0; j < 32; j++) {
|
for (j = 0; j < 32; j++) {
|
||||||
GraphBuffer[i++] = phase;
|
GraphBuffer[i++] = phase;
|
||||||
phase = !phase;
|
phase = !phase;
|
||||||
|
|
Loading…
Reference in a new issue