Skip to content

Commit

Permalink
boards: arm: thingy53: Fix default USB related log levels
Browse files Browse the repository at this point in the history
Previous method of setting default USB related log levels for Thingy53
led to generating inconsistent configuration, ex.
CONFIG_USB_CDC_ACM_LOG_LEVEL=0 and CONFIG_USB_CDC_ACM_LOG_LEVEL_INF=y
at the same time. This commit changes to proper implementation
which is overlaying choice's default.

Signed-off-by: Mateusz Kapala <[email protected]>
  • Loading branch information
mkapala-nordic authored and stephanosio committed Feb 10, 2023
1 parent 66f380f commit c2050f3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions boards/arm/thingy53_nrf5340/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ config USB_DEVICE_REMOTE_WAKEUP
if LOG

# Logger cannot use itself to log
config USB_CDC_ACM_LOG_LEVEL
default 0
choice USB_CDC_ACM_LOG_LEVEL_CHOICE
default USB_CDC_ACM_LOG_LEVEL_OFF
endchoice

# Set USB log level to error only
config USB_DEVICE_LOG_LEVEL
default 1
choice USB_DEVICE_LOG_LEVEL_CHOICE
default USB_DEVICE_LOG_LEVEL_ERR
endchoice

# Wait 4000ms at startup for logging
config LOG_PROCESS_THREAD_STARTUP_DELAY_MS
Expand Down

0 comments on commit c2050f3

Please sign in to comment.