Skip to content

Commit 31b2713

Browse files
committed
samples: usb: common: Add NCM when setting code triple
Add NCM class to sample usbd initialization and the code triple is set properly. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 1aaf6a1 commit 31b2713

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/subsys/usb/common/sample_usbd_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ static void sample_fix_code_triple(struct usbd_context *uds_ctx,
7272
/* Always use class code information from Interface Descriptors */
7373
if (IS_ENABLED(CONFIG_USBD_CDC_ACM_CLASS) ||
7474
IS_ENABLED(CONFIG_USBD_CDC_ECM_CLASS) ||
75+
IS_ENABLED(CONFIG_USBD_CDC_NCM_CLASS) ||
7576
IS_ENABLED(CONFIG_USBD_AUDIO2_CLASS)) {
7677
/*
7778
* Class with multiple interfaces have an Interface

0 commit comments

Comments
 (0)