Skip to content

Commit

Permalink
samples: disable CDC ACM logging
Browse files Browse the repository at this point in the history
Disable CDC ACM logging in the configuration overlays used to select the
CDC ACM UART as the shell backend.
The build warning was introduced by the commit e8c4867
("usb: cdc_acm: disable logging if used for shell with logging")
to prevent recursive logging when using the CDC ACM UART as shell or
logging backend

Signed-off-by: Johann Fischer <[email protected]>
  • Loading branch information
jfischer-no authored and aescolar committed Oct 8, 2024
1 parent 86b6665 commit d7ab4f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CONFIG_DMA=y
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_WORKQUEUE_STACK_SIZE=8192
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
CONFIG_MAIN_STACK_SIZE=4096

CONFIG_SERIAL=y
Expand Down
1 change: 1 addition & 0 deletions samples/subsys/shell/shell_module/overlay-usb.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="Zephyr USB shell sample"
CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR=y
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
CONFIG_UART_LINE_CTRL=y
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n

Expand Down

0 comments on commit d7ab4f2

Please sign in to comment.