mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
FIX: had to make it clientside only
This commit is contained in:
parent
88e7a6bfa7
commit
91e9295761
2 changed files with 9 additions and 8 deletions
|
@ -14,22 +14,21 @@ void dummy(char *fmt, ...){}
|
||||||
void dummy_sgc (int clock, int startidx) {}
|
void dummy_sgc (int clock, int startidx) {}
|
||||||
|
|
||||||
#ifndef ON_DEVICE
|
#ifndef ON_DEVICE
|
||||||
# include "ui.h"
|
# include "ui.h" // plotclock, plotclockstartindex
|
||||||
# include "cmdparser.h"
|
# include "cmdparser.h"
|
||||||
# include "cmddata.h"
|
# include "cmddata.h"
|
||||||
# define prnt PrintAndLog
|
# define prnt PrintAndLog
|
||||||
# define sgc SetGraphClock
|
# define sgc SetGraphClock
|
||||||
|
void SetGraphClock(int clock, int startidx){
|
||||||
|
PlotClock = clock;
|
||||||
|
PlockClockStartIndex = startidx;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
uint8_t g_debugMode = 0;
|
uint8_t g_debugMode = 0;
|
||||||
# define prnt dummy
|
# define prnt dummy
|
||||||
# define sgc dummy_sgc
|
# define sgc dummy_sgc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void SetGraphClock(int clock, int startidx){
|
|
||||||
PlotClock = clock;
|
|
||||||
PlockClockStartIndex = startidx;
|
|
||||||
}
|
|
||||||
|
|
||||||
//test samples are not just noise
|
//test samples are not just noise
|
||||||
uint8_t justNoise(uint8_t *bits, size_t size) {
|
uint8_t justNoise(uint8_t *bits, size_t size) {
|
||||||
#define THRESHOLD 123
|
#define THRESHOLD 123
|
||||||
|
|
|
@ -17,9 +17,11 @@
|
||||||
#include <stdbool.h> // for bool
|
#include <stdbool.h> // for bool
|
||||||
#include <string.h> // for strcmp
|
#include <string.h> // for strcmp
|
||||||
#include <stdlib.h> // for
|
#include <stdlib.h> // for
|
||||||
#include "ui.h" // plotclock, plotclockstartindex
|
|
||||||
//generic
|
//generic
|
||||||
|
#ifndef ON_DEVICE
|
||||||
void SetGraphClock(int clock, int startidx);
|
void SetGraphClock(int clock, int startidx);
|
||||||
|
#endif
|
||||||
uint8_t justNoise(uint8_t *bits, size_t size);
|
uint8_t justNoise(uint8_t *bits, size_t size);
|
||||||
size_t addParity(uint8_t *BitSource, uint8_t *dest, uint8_t sourceLen, uint8_t pLen, uint8_t pType);
|
size_t addParity(uint8_t *BitSource, uint8_t *dest, uint8_t sourceLen, uint8_t pLen, uint8_t pType);
|
||||||
int askdemod(uint8_t *BinStream, size_t *size, int *clk, int *invert, int maxErr, uint8_t amp, uint8_t askType);
|
int askdemod(uint8_t *BinStream, size_t *size, int *clk, int *invert, int maxErr, uint8_t amp, uint8_t askType);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue