]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
syntax sugar
authoriceman1001 <iceman@iuse.se>
Mon, 13 Feb 2017 14:33:26 +0000 (15:33 +0100)
committericeman1001 <iceman@iuse.se>
Mon, 13 Feb 2017 14:33:26 +0000 (15:33 +0100)
common/lfdemod.c
common/lfdemod.h

index 910b2af4e65a1b2809819ff8d68d1db34bc6d7c2..6b6743574e594ce26ef28ba35ba5efd5ce1e534d 100644 (file)
@@ -7,22 +7,20 @@
 //-----------------------------------------------------------------------------
 // Low frequency demod/decode commands
 //-----------------------------------------------------------------------------
-
-#include <stdlib.h>
 #include "lfdemod.h"
-#include <string.h>
 
 //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
index 7b25a02a004f6ad445b2c6f7f5a770362ff31be7..86ae7bc216c9092c48ab8a51385c5676904a773a 100644 (file)
@@ -15,6 +15,8 @@
 #define LFDEMOD_H__
 #include <stdint.h>  // for uint_32+
 #include <stdbool.h> // for bool
+#include <string.h>  // for strcmp 
+#include <stdlib.h>  // for
 
 //generic
 uint8_t  justNoise(uint8_t *bits, size_t size);
Impressum, Datenschutz