From 3e7506ccda5e359079e8c9bb34bbd728a7de6a3e Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 12 May 2020 14:55:12 +0200 Subject: [PATCH] examples/console: error out if built with USB CDC enabled --- examples/system/console/main/console_example_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/system/console/main/console_example_main.c b/examples/system/console/main/console_example_main.c index 2fb295d0de..d232fe6d4a 100644 --- a/examples/system/console/main/console_example_main.c +++ b/examples/system/console/main/console_example_main.c @@ -21,6 +21,10 @@ #include "nvs.h" #include "nvs_flash.h" +#ifdef CONFIG_ESP_CONSOLE_USB_CDC +#error This example is incompatible with USB CDC console. Please try "console_usb" example instead. +#endif // CONFIG_ESP_CONSOLE_USB_CDC + static const char* TAG = "example"; #define PROMPT_STR CONFIG_IDF_TARGET