Skip to content

Commit c58c6f2

Browse files
committed
fix possible compile issue with esp32 core
1 parent 9ab03a0 commit c58c6f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/device/usbd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,10 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr)
506506
break;
507507

508508
case DCD_EVENT_SETUP_RECEIVED:
509+
// FIXME arduino-esp32 takes time to upgrade tinyusb
510+
#ifndef TU_LOG_PTR
511+
#define TU_LOG_PTR TU_LOG_VAR
512+
#endif
509513
TU_LOG_PTR(USBD_DBG, &event.setup_received);
510514
TU_LOG(USBD_DBG, "\r\n");
511515

0 commit comments

Comments
 (0)