mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
add #else for WIFI and NET DBG
This commit is contained in:
parent
5456f96a81
commit
87ec0578c0
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user