mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 21:33:19 -07:00
add check for no wave in graphbuffer prior to...
hitag lf search check
This commit is contained in:
parent
11117f6ab5
commit
38cb7c71c5
3 changed files with 19 additions and 4 deletions
|
@ -268,3 +268,13 @@ uint8_t fskClocks(uint8_t *fc1, uint8_t *fc2, uint8_t *rf1, bool verbose)
|
|||
}
|
||||
return 1;
|
||||
}
|
||||
bool graphJustNoise(int *BitStream, int size)
|
||||
{
|
||||
static const uint8_t THRESHOLD = 10; //might not be high enough for noisy environments
|
||||
//test samples are not just noise
|
||||
bool justNoise1 = 1;
|
||||
for(int idx=0; idx < size && justNoise1 ;idx++){
|
||||
justNoise1 = BitStream[idx] < THRESHOLD;
|
||||
}
|
||||
return justNoise1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue