Skip to content

Commit c2050f3

Browse files
mkapala-nordicstephanosio
authored andcommitted
boards: arm: thingy53: Fix default USB related log levels
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]>
1 parent 66f380f commit c2050f3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

boards/arm/thingy53_nrf5340/Kconfig.defconfig

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,14 @@ config USB_DEVICE_REMOTE_WAKEUP
114114
if LOG
115115

116116
# Logger cannot use itself to log
117-
config USB_CDC_ACM_LOG_LEVEL
118-
default 0
117+
choice USB_CDC_ACM_LOG_LEVEL_CHOICE
118+
default USB_CDC_ACM_LOG_LEVEL_OFF
119+
endchoice
119120

120121
# Set USB log level to error only
121-
config USB_DEVICE_LOG_LEVEL
122-
default 1
122+
choice USB_DEVICE_LOG_LEVEL_CHOICE
123+
default USB_DEVICE_LOG_LEVEL_ERR
124+
endchoice
123125

124126
# Wait 4000ms at startup for logging
125127
config LOG_PROCESS_THREAD_STARTUP_DELAY_MS

0 commit comments

Comments
 (0)