summaryrefslogtreecommitdiff
path: root/examples/device/printer_to_cdc/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-04-21 11:26:51 +0700
committerhathach <[email protected]>2026-04-21 11:26:51 +0700
commitf9e79844edd9757243c786c9e901cfba3f281b6b (patch)
tree357b7529f4b9ad393343b66ba5f92f44ba07ce42 /examples/device/printer_to_cdc/src
parentda2368bc141c7e76e818df2336ffe672b7927748 (diff)
replace `TUD_ENDPOINT_ONE_DIRECTION_ONLY` with `CFG_TUD_ENDPOINT_ONE_DIRECTION_ONLY` for improved configuration consistency across examples and core sources
Diffstat (limited to 'examples/device/printer_to_cdc/src')
-rw-r--r--examples/device/printer_to_cdc/src/usb_descriptors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/printer_to_cdc/src/usb_descriptors.c b/examples/device/printer_to_cdc/src/usb_descriptors.c
index 30d309ed4..2e6b3f6c3 100644
--- a/examples/device/printer_to_cdc/src/usb_descriptors.c
+++ b/examples/device/printer_to_cdc/src/usb_descriptors.c
@@ -67,7 +67,7 @@ uint8_t const *tud_descriptor_device_cb(void) {
//--------------------------------------------------------------------+
// Endpoint numbers
-#if defined(TUD_ENDPOINT_ONE_DIRECTION_ONLY)
+#if CFG_TUD_ENDPOINT_ONE_DIRECTION_ONLY
#define EPNUM_CDC_NOTIF 0x81
#define EPNUM_CDC_OUT 0x02
#define EPNUM_CDC_IN 0x83