Compile fix for net_debug

pull/3081/head
Blaz Kristan 2023-02-04 23:59:28 +01:00
rodzic 52a189cdd2
commit 52c18e77ae
3 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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

Wyświetl plik

@ -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