mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
style
This commit is contained in:
parent
2288c7e72b
commit
596b0b6405
1 changed files with 8 additions and 5 deletions
|
@ -434,8 +434,9 @@ int detectGProxII(uint8_t *bits, size_t *size) {
|
||||||
// sanity check
|
// sanity check
|
||||||
if (*size < sizeof(preamble)) return -1;
|
if (*size < sizeof(preamble)) return -1;
|
||||||
|
|
||||||
|
// preamble not found
|
||||||
if (!preambleSearch(bits, preamble, sizeof(preamble), size, &startIdx))
|
if (!preambleSearch(bits, preamble, sizeof(preamble), size, &startIdx))
|
||||||
return -2; //preamble not found
|
return -2;
|
||||||
|
|
||||||
// gProxII should be 96 bits
|
// gProxII should be 96 bits
|
||||||
if (*size != 96) return -3;
|
if (*size != 96) return -3;
|
||||||
|
@ -446,7 +447,9 @@ int detectGProxII(uint8_t *bits, size_t *size) {
|
||||||
//return start position
|
//return start position
|
||||||
return (int) startIdx;
|
return (int) startIdx;
|
||||||
}
|
}
|
||||||
return -5; //spacer bits not found - not a valid gproxII
|
|
||||||
|
// spacer bits not found - not a valid gproxII
|
||||||
|
return -5;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Works for 26bits.
|
// Works for 26bits.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue