mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-04 07:11:10 +08:00
Changed io threshold to 140, fixed boolean error in comparison
This commit is contained in:
parent
e47e52a2c8
commit
d2197f967a
1 changed files with 2 additions and 2 deletions
|
@ -592,14 +592,14 @@ uint32_t bytebits_to_byte(uint8_t* src, int numbits)
|
|||
|
||||
int IOdemodFSK(uint8_t *dest, size_t size)
|
||||
{
|
||||
static const uint8_t THRESHOLD = 170;
|
||||
static const uint8_t THRESHOLD = 140;
|
||||
uint32_t idx=0;
|
||||
//make sure buffer has data
|
||||
if (size < 66) return -1;
|
||||
//test samples are not just noise
|
||||
uint8_t justNoise = 1;
|
||||
for(idx=0;idx< size && justNoise ;idx++){
|
||||
justNoise = dest[idx] > THRESHOLD;
|
||||
justNoise = dest[idx] < THRESHOLD;
|
||||
}
|
||||
if(justNoise) return 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue