diff --git a/platformio.ini b/platformio.ini index bf1680e3..998730e4 100644 --- a/platformio.ini +++ b/platformio.ini @@ -595,6 +595,8 @@ build_flags_min = -D USERMOD_AUDIOREACTIVE -D UM_AUDIOREACTIVE_USE_NEW_FFT ; use latest (upstream) FFTLib, instead of older library modified by blazoncek. Slightly faster, more accurate, needs 2KB RAM extra -D USERMOD_CUSTOMEFFECTS ; WLEDMM usermod + ; -D WLED_DEBUG_HOST='"192.168.xxx.xxx"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible + ; -D WLED_DEBUG_NET_PORT=1768 ;; port for network debugging. default = 7868 ; -D WLED_DEBUG ; lots of generic debug messages ; -D SR_DEBUG ; some extra debug messages from audioreactive ; -D MIC_LOGGER ; for sound input monitoring & debugging (use arduino serial plotter) diff --git a/wled00/net_debug.h b/wled00/net_debug.h index abe863fd..726e548f 100644 --- a/wled00/net_debug.h +++ b/wled00/net_debug.h @@ -11,6 +11,8 @@ class NetworkDebugPrinter : public Print { public: virtual size_t write(uint8_t c); virtual size_t write(const uint8_t *buf, size_t s); + virtual void flush(void) { return;} // WLEDMM adding flush() method - does nothing as we cannot use debugUdp.flush() which clears _input_ buffers + virtual void flush( bool txOnly) { return;} // WLEDMM }; extern NetworkDebugPrinter NetDebug;