kopia lustrzana https://github.com/Aircoookie/WLED
Compile fix for net_debug
rodzic
52a189cdd2
commit
52c18e77ae
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue