fix debug macros

This commit is contained in:
Markus Fröschle
2017-04-07 04:19:08 +00:00
parent 353cd1cd8c
commit 4c866e6aff

View File

@@ -11,12 +11,8 @@
#include <stddef.h> #include <stddef.h>
#include "bas_printf.h" #include "bas_printf.h"
#define DBG_BOOTP // #define DEBUG
#ifdef DBG_BOOTP #include "debug.h"
#define dbg(format, arg...) do { xprintf("DEBUG: %s(): " format, __FUNCTION__, ##arg); } while (0)
#else
#define dbg(format, arg...) do { ; } while (0)
#endif /* DBG_BOOTP */
#define TIMER_NETWORK 3 /* defines GPT3 as timer for this function */ #define TIMER_NETWORK 3 /* defines GPT3 as timer for this function */