From: iceman1001 Date: Mon, 13 Feb 2017 14:33:26 +0000 (+0100) Subject: syntax sugar X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/e977fb0da3b08802307ea0f3106390cd5ae718b3 syntax sugar --- diff --git a/common/lfdemod.c b/common/lfdemod.c index 910b2af4..6b674357 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -7,22 +7,20 @@ //----------------------------------------------------------------------------- // Low frequency demod/decode commands //----------------------------------------------------------------------------- - -#include #include "lfdemod.h" -#include //un_comment to allow debug print calls when used not on device void dummy(char *fmt, ...){} + #ifndef ON_DEVICE -#include "ui.h" -#include "cmdparser.h" -#include "cmddata.h" -#define prnt PrintAndLog +# include "ui.h" +# include "cmdparser.h" +# include "cmddata.h" +# define prnt PrintAndLog #else uint8_t g_debugMode=0; -#define prnt dummy +# define prnt dummy #endif //test samples are not just noise diff --git a/common/lfdemod.h b/common/lfdemod.h index 7b25a02a..86ae7bc2 100644 --- a/common/lfdemod.h +++ b/common/lfdemod.h @@ -15,6 +15,8 @@ #define LFDEMOD_H__ #include // for uint_32+ #include // for bool +#include // for strcmp +#include // for //generic uint8_t justNoise(uint8_t *bits, size_t size);