Compile fix for net_debug
This commit is contained in:
parent
52a189cdd2
commit
52c18e77ae
@ -16,6 +16,7 @@ void colorRGBtoRGBW(byte* rgb);
|
|||||||
|
|
||||||
// enable additional debug output
|
// enable additional debug output
|
||||||
#if defined(WLED_DEBUG_HOST)
|
#if defined(WLED_DEBUG_HOST)
|
||||||
|
#include "net_debug.h"
|
||||||
#define DEBUGOUT NetDebug
|
#define DEBUGOUT NetDebug
|
||||||
#else
|
#else
|
||||||
#define DEBUGOUT Serial
|
#define DEBUGOUT Serial
|
||||||
|
@ -13,6 +13,7 @@ class NetworkDebugPrinter : public Print {
|
|||||||
virtual size_t write(const uint8_t *buf, size_t s);
|
virtual size_t write(const uint8_t *buf, size_t s);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// use it on your linux/macOS with: nc -p 7868 -u -l -s <network ip>
|
||||||
extern NetworkDebugPrinter NetDebug;
|
extern NetworkDebugPrinter NetDebug;
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -96,10 +96,6 @@
|
|||||||
#include "my_config.h"
|
#include "my_config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WLED_DEBUG_HOST
|
|
||||||
#include "net_debug.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
#ifdef WLED_ADD_EEPROM_SUPPORT
|
#ifdef WLED_ADD_EEPROM_SUPPORT
|
||||||
#include <EEPROM.h>
|
#include <EEPROM.h>
|
||||||
@ -724,6 +720,7 @@ WLED_GLOBAL volatile uint8_t jsonBufferLock _INIT(0);
|
|||||||
|
|
||||||
// enable additional debug output
|
// enable additional debug output
|
||||||
#if defined(WLED_DEBUG_HOST)
|
#if defined(WLED_DEBUG_HOST)
|
||||||
|
#include "net_debug.h"
|
||||||
// On the host side, use netcat to receive the log statements: nc -l 7868 -u
|
// On the host side, use netcat to receive the log statements: nc -l 7868 -u
|
||||||
// use -D WLED_DEBUG_HOST='"192.168.xxx.xxx"' or FQDN within quotes
|
// use -D WLED_DEBUG_HOST='"192.168.xxx.xxx"' or FQDN within quotes
|
||||||
#define DEBUGOUT NetDebug
|
#define DEBUGOUT NetDebug
|
||||||
|
Loading…
Reference in New Issue
Block a user