add #else for WIFI and NET DBG

This commit is contained in:
MaBecker 2018-01-13 09:09:26 +01:00
parent 5456f96a81
commit 87ec0578c0
2 changed files with 6 additions and 0 deletions

View File

@ -33,10 +33,14 @@
// Normal debug
#if WIFI_DBG > 0
#define DBG(format, ...) os_printf(format, ## __VA_ARGS__)
#else
#define DBG(format, ...) do { } while(0)
#endif
// Verbose debug
#if WIFI_DBG > 1
#define DBGV(format, ...) os_printf(format, ## __VA_ARGS__)
#else
#define DBGV(format, ...) do { } while(0)
#endif
#endif

View File

@ -43,6 +43,8 @@ typedef long long int64_t;
// #include "jsinteractive.h"
// #define DBG(format, ...) jsiConsolePrintf(format, ## __VA_ARGS__)
static char DBG_LIB[] = "net_esp8266"; // library name
#else
#define DBG(format, ...) do { } while(0)
#endif
#endif