Skip to content

Commit 072e444

Browse files
ribseyaustina-csa
authored andcommitted
fool 'streamer_esp32_write' caller if console disabled (project-chip#34773)
1 parent f308b00 commit 072e444

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/shell/streamer_esp32.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ ssize_t streamer_esp32_write(streamer_t * streamer, const char * buf, size_t len
131131
#ifdef CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
132132
return usb_serial_jtag_write_bytes(buf, len, 0);
133133
#endif
134+
#if CONFIG_ESP_CONSOLE_NONE
135+
return len;
136+
#endif
134137
}
135138

136139
static streamer_t streamer_stdio = {

0 commit comments

Comments
 (0)