Skip to content

Commit b7e1794

Browse files
committed
loader: enable USB only for legacy stack
1 parent 86b9ad7 commit b7e1794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static int loader(const struct shell *sh)
6969
return -EINVAL;
7070
}
7171

72-
#if DT_NODE_HAS_PROP(DT_PATH(zephyr_user), cdc_acm) && CONFIG_SHELL
72+
#if DT_NODE_HAS_PROP(DT_PATH(zephyr_user), cdc_acm) && CONFIG_SHELL && CONFIG_USB_DEVICE_STACK
7373
uint8_t debug = endptr[1];
7474
if (debug != 0 && strcmp(k_thread_name_get(k_current_get()), "main") == 0) {
7575
// disables default shell on UART

0 commit comments

Comments
 (0)