mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08:00
fix: hilow fuzzing overlap
This commit is contained in:
parent
b66a481581
commit
c187774a98
1 changed files with 7 additions and 1 deletions
|
@ -180,6 +180,12 @@ void getHiLo(int *high, int *low, uint8_t fuzzHi, uint8_t fuzzLo) {
|
|||
*low = signalprop.low + ((range * (100-fuzzLo))/100);
|
||||
}
|
||||
|
||||
// if fuzzing to great and overlap
|
||||
if ( *high < *low ) {
|
||||
*high = signalprop.high;
|
||||
*low = signalprop.low;
|
||||
}
|
||||
|
||||
if (g_debugMode)
|
||||
prnt("getHiLo fuzzed: High %d | Low %d", *high, *low);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue