From a16d5c63983a311d2f2c25534f7ff06373818971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mo=C5=84?= Date: Mon, 19 Dec 2022 08:57:40 +0100 Subject: [PATCH] boards: bl654_usb: disable CDC ACM logging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disable logging module in CDC ACM to prevent recursive logging loop when CDC ACM is used as serial backend. Signed-off-by: Tomasz Moń --- boards/arm/bl654_usb/Kconfig.defconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boards/arm/bl654_usb/Kconfig.defconfig b/boards/arm/bl654_usb/Kconfig.defconfig index 45dc5022dde30..5cd5068052dde 100644 --- a/boards/arm/bl654_usb/Kconfig.defconfig +++ b/boards/arm/bl654_usb/Kconfig.defconfig @@ -42,6 +42,14 @@ config USB_DEVICE_INITIALIZE_AT_BOOT config SHELL_BACKEND_SERIAL_CHECK_DTR default SHELL +# Logger cannot use itself to log +config USB_CDC_ACM_LOG_LEVEL + default 0 + +# Set USB log level to error only +config USB_DEVICE_LOG_LEVEL + default 1 + endif #BL654_USB_SERIAL_BACKEND_CDCACM config BT_CTLR