summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-12-22 21:29:00 +0700
committerGitHub <[email protected]>2022-12-22 21:29:00 +0700
commit2777df411f23c7105568d73c92dc496dd2a9d97e (patch)
treed753c8914f314ec456544232437044c811a9cebd /src/device
parent97984b4203c4b14499d5a99361823774a49c3afe (diff)
parent396716cc2c29b151556d554c560307afcadd7252 (diff)
Merge pull request #1809 from hathach/host-cdc
Support Host CDC
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index f9a7af21b..f652a878e 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -39,13 +39,13 @@
// USBD Configuration
//--------------------------------------------------------------------+
-// Debug level of USBD
-#define USBD_DBG 2
-
#ifndef CFG_TUD_TASK_QUEUE_SZ
#define CFG_TUD_TASK_QUEUE_SZ 16
#endif
+// Debug level of USBD
+#define USBD_DBG 2
+
//--------------------------------------------------------------------+
// Device Data
//--------------------------------------------------------------------+
@@ -506,7 +506,7 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr)
break;
case DCD_EVENT_SETUP_RECEIVED:
- TU_LOG_VAR(USBD_DBG, &event.setup_received);
+ TU_LOG_PTR(USBD_DBG, &event.setup_received);
TU_LOG(USBD_DBG, "\r\n");
// Mark as connected after receiving 1st setup packet.