Browse Source

tracing: fix build error on USB backend

This commit to fix build error due to a wrong syntax in case USBD
highspeed was enabled

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
pull/91741/head
The Nguyen 3 weeks ago committed by Benjamin Cabé
parent
commit
f51a89268f
  1. 2
      subsys/tracing/tracing_backend_usb.c

2
subsys/tracing/tracing_backend_usb.c

@ -235,7 +235,7 @@ const static __maybe_unused struct usb_desc_header *tracing_func_hs_desc[] = { @@ -235,7 +235,7 @@ const static __maybe_unused struct usb_desc_header *tracing_func_hs_desc[] = {
static struct tracing_func_data func_data = {
.desc = &func_desc,
.fs_desc = tracing_func_fs_desc,
.hs_desc = COND_CODE_1(USBD_SUPPORTS_HIGH_SPEED, (tracing_func_hs_desc), (NULL,))
.hs_desc = COND_CODE_1(USBD_SUPPORTS_HIGH_SPEED, (tracing_func_hs_desc), (NULL)),
.sync_sem = Z_SEM_INITIALIZER(func_data.sync_sem, 0, 1),
};

Loading…
Cancel
Save