mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
ADD: 'lf search' - @marshmellow42 's check if signal is noice.
This commit is contained in:
parent
cf5a79de33
commit
3f84d47369
3 changed files with 39 additions and 23 deletions
|
@ -268,3 +268,16 @@ uint8_t fskClocks(uint8_t *fc1, uint8_t *fc2, uint8_t *rf1, bool verbose)
|
|||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
// test samples are not just noise
|
||||
bool graphJustNoise(int *BitStream, int size)
|
||||
{
|
||||
//might not be high enough for noisy environments
|
||||
#define THRESHOLD 15;
|
||||
|
||||
bool isNoise = TRUE;
|
||||
for(int i=0; i < size && isNoise; i++){
|
||||
isNoise = BitStream[i] < THRESHOLD;
|
||||
}
|
||||
return isNoise;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue