Compile fix for net_debug

This commit is contained in:
Blaz Kristan 2023-02-04 23:59:28 +01:00
parent 52a189cdd2
commit 52c18e77ae
3 changed files with 3 additions and 4 deletions

View File

@ -16,6 +16,7 @@ void colorRGBtoRGBW(byte* rgb);
// enable additional debug output
#if defined(WLED_DEBUG_HOST)
#include "net_debug.h"
#define DEBUGOUT NetDebug
#else
#define DEBUGOUT Serial

View File

@ -13,6 +13,7 @@ class NetworkDebugPrinter : public Print {
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;
#endif

View File

@ -96,10 +96,6 @@
#include "my_config.h"
#endif
#ifdef WLED_DEBUG_HOST
#include "net_debug.h"
#endif
#include <ESPAsyncWebServer.h>
#ifdef WLED_ADD_EEPROM_SUPPORT
#include <EEPROM.h>
@ -724,6 +720,7 @@ WLED_GLOBAL volatile uint8_t jsonBufferLock _INIT(0);
// enable additional debug output
#if defined(WLED_DEBUG_HOST)
#include "net_debug.h"
// 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
#define DEBUGOUT NetDebug