Fix arg names mismatches between decl & def

This commit is contained in:
Philippe Teuwen 2019-06-07 21:26:03 +02:00
parent 732bc766f9
commit f7dfd2a1f2
3 changed files with 8 additions and 8 deletions

View file

@ -45,9 +45,9 @@ void ReadMem(int addr);
void __attribute__((noreturn)) AppMain(void);
//void DbpIntegers(int a, int b, int c);
void DbpString(char *str);
void DbpStringEx(uint32_t cmd, char *str);
void DbpStringEx(uint32_t flags, char *str);
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);
// ADC Vref = 3300mV, and an (10M+1M):1M voltage divider on the HF input can measure voltages up to 36300 mV

View file

@ -24,7 +24,7 @@
int CmdLFViking(const char *Cmd);
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);
#endif

View file

@ -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) {