mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -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
|
@ -45,9 +45,9 @@ void ReadMem(int addr);
|
||||||
void __attribute__((noreturn)) AppMain(void);
|
void __attribute__((noreturn)) AppMain(void);
|
||||||
//void DbpIntegers(int a, int b, int c);
|
//void DbpIntegers(int a, int b, int c);
|
||||||
void DbpString(char *str);
|
void DbpString(char *str);
|
||||||
void DbpStringEx(uint32_t cmd, char *str);
|
void DbpStringEx(uint32_t flags, char *str);
|
||||||
void Dbprintf(const char *fmt, ...);
|
void Dbprintf(const char *fmt, ...);
|
||||||
void DbprintfEx(uint32_t cmd, const char *fmt, ...);
|
void DbprintfEx(uint32_t flags, const char *fmt, ...);
|
||||||
void Dbhexdump(int len, uint8_t *d, bool bAsci);
|
void Dbhexdump(int len, uint8_t *d, bool bAsci);
|
||||||
|
|
||||||
// ADC Vref = 3300mV, and an (10M+1M):1M voltage divider on the HF input can measure voltages up to 36300 mV
|
// ADC Vref = 3300mV, and an (10M+1M):1M voltage divider on the HF input can measure voltages up to 36300 mV
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
int CmdLFViking(const char *Cmd);
|
int CmdLFViking(const char *Cmd);
|
||||||
|
|
||||||
int demodViking(void);
|
int demodViking(void);
|
||||||
int detectViking(uint8_t *dest, size_t *size);
|
int detectViking(uint8_t *src, size_t *size);
|
||||||
uint64_t getVikingBits(uint32_t id);
|
uint64_t getVikingBits(uint32_t id);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -479,14 +479,14 @@ bool DetectCleanAskWave(uint8_t *dest, size_t size, uint8_t high, uint8_t low) {
|
||||||
// by marshmellow
|
// by marshmellow
|
||||||
// to help detect clocks on heavily clipped samples
|
// to help detect clocks on heavily clipped samples
|
||||||
// based on count of low to low
|
// 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 i = 100;
|
||||||
size_t minClk = 512;
|
size_t minClk = 512;
|
||||||
uint16_t shortestWaveIdx = 0;
|
uint16_t shortestWaveIdx = 0;
|
||||||
|
|
||||||
// get to first full low to prime loop and skip incomplete first pulse
|
// get to first full low to prime loop and skip incomplete first pulse
|
||||||
getNextHigh(src, size, high, &i);
|
getNextHigh(dest, size, high, &i);
|
||||||
getNextLow(src, size, low, &i);
|
getNextLow(dest, size, low, &i);
|
||||||
|
|
||||||
if (i == size)
|
if (i == size)
|
||||||
return -1;
|
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
|
// measure from low to low
|
||||||
size_t startwave = i;
|
size_t startwave = i;
|
||||||
|
|
||||||
getNextHigh(src, size, high, &i);
|
getNextHigh(dest, size, high, &i);
|
||||||
getNextLow(src, size, low, &i);
|
getNextLow(dest, size, low, &i);
|
||||||
|
|
||||||
//get minimum measured distance
|
//get minimum measured distance
|
||||||
if (i - startwave < minClk && i < size) {
|
if (i - startwave < minClk && i < size) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue