Skip to content

Commit 3d80f50

Browse files
committed
make netDegug work with MIC_LOGGER
adding a dummy "´flush()" method to NetDebug that does nothing
1 parent c7c5b32 commit 3d80f50

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

platformio.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@ build_flags_min =
595595
-D USERMOD_AUDIOREACTIVE
596596
-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
597597
-D USERMOD_CUSTOMEFFECTS ; WLEDMM usermod
598+
; -D WLED_DEBUG_HOST='"192.168.xxx.xxx"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
599+
; -D WLED_DEBUG_NET_PORT=1768 ;; port for network debugging. default = 7868
598600
; -D WLED_DEBUG ; lots of generic debug messages
599601
; -D SR_DEBUG ; some extra debug messages from audioreactive
600602
; -D MIC_LOGGER ; for sound input monitoring & debugging (use arduino serial plotter)

wled00/net_debug.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class NetworkDebugPrinter : public Print {
1111
public:
1212
virtual size_t write(uint8_t c);
1313
virtual size_t write(const uint8_t *buf, size_t s);
14+
virtual void flush(void) { return;} // WLEDMM adding flush() method - does nothing as we cannot use debugUdp.flush() which clears _input_ buffers
15+
virtual void flush( bool txOnly) { return;} // WLEDMM
1416
};
1517

1618
extern NetworkDebugPrinter NetDebug;

0 commit comments

Comments
 (0)