mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-19 19:38:52 +08:00
style
This commit is contained in:
parent
9a9d86de95
commit
86118525e5
1 changed files with 5 additions and 2 deletions
|
@ -284,13 +284,16 @@ int detectIdteck(uint8_t *dest, size_t *size) {
|
|||
if (getSignalProperties()->isnoise) return -2;
|
||||
|
||||
size_t start_idx = 0;
|
||||
// 4 9 4 4 5 4 4 B
|
||||
uint8_t preamble[] = {0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1};
|
||||
|
||||
//preamble not found
|
||||
if (!preambleSearch(dest, preamble, sizeof(preamble), size, &start_idx))
|
||||
if (preambleSearch(dest, preamble, sizeof(preamble), size, &start_idx) == false)
|
||||
return -3;
|
||||
|
||||
// wrong demoded size
|
||||
if (*size != 64) return -4;
|
||||
if (*size != 64) {
|
||||
return -4;
|
||||
}
|
||||
return (int)start_idx;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue