Skip to content

Commit 3e7506c

Browse files
committed
examples/console: error out if built with USB CDC enabled
1 parent b767e61 commit 3e7506c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/system/console/main/console_example_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#include "nvs.h"
2222
#include "nvs_flash.h"
2323

24+
#ifdef CONFIG_ESP_CONSOLE_USB_CDC
25+
#error This example is incompatible with USB CDC console. Please try "console_usb" example instead.
26+
#endif // CONFIG_ESP_CONSOLE_USB_CDC
27+
2428
static const char* TAG = "example";
2529
#define PROMPT_STR CONFIG_IDF_TARGET
2630

0 commit comments

Comments
 (0)