mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
Fix arg names mismatches between decl & def
This commit is contained in:
parent
732bc766f9
commit
f7dfd2a1f2
3 changed files with 8 additions and 8 deletions
|
@ -479,14 +479,14 @@ bool DetectCleanAskWave(uint8_t *dest, size_t size, uint8_t high, uint8_t low) {
|
|||
// by marshmellow
|
||||
// to help detect clocks on heavily clipped samples
|
||||
// based on count of low to low
|
||||
int DetectStrongAskClock(uint8_t *src, size_t size, int high, int low, int *clock) {
|
||||
int DetectStrongAskClock(uint8_t *dest, size_t size, int high, int low, int *clock) {
|
||||
size_t i = 100;
|
||||
size_t minClk = 512;
|
||||
uint16_t shortestWaveIdx = 0;
|
||||
|
||||
// get to first full low to prime loop and skip incomplete first pulse
|
||||
getNextHigh(src, size, high, &i);
|
||||
getNextLow(src, size, low, &i);
|
||||
getNextHigh(dest, size, high, &i);
|
||||
getNextLow(dest, size, low, &i);
|
||||
|
||||
if (i == size)
|
||||
return -1;
|
||||
|
@ -512,8 +512,8 @@ int DetectStrongAskClock(uint8_t *src, size_t size, int high, int low, int *cloc
|
|||
// measure from low to low
|
||||
size_t startwave = i;
|
||||
|
||||
getNextHigh(src, size, high, &i);
|
||||
getNextLow(src, size, low, &i);
|
||||
getNextHigh(dest, size, high, &i);
|
||||
getNextLow(dest, size, low, &i);
|
||||
|
||||
//get minimum measured distance
|
||||
if (i - startwave < minClk && i < size) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue