diff options
| author | Ha Thach <[email protected]> | 2020-05-08 12:38:50 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-08 12:38:50 +0700 |
| commit | f9f0873b72f26c39a2322a02929ca92833959eca (patch) | |
| tree | 2eb19305a9fab4311b58c9463f362dbb3568a8af /src | |
| parent | 286ff03ffa3ef563f54797e61617b5ded69a2f21 (diff) | |
| parent | 63bd8d2e44225341caae6dafb2affb1fe711a9b4 (diff) | |
Merge pull request #393 from xobs/fix-debug-warning
device: fix build warning when CFG_TUSB_DEBUG >= 2
Diffstat (limited to 'src')
| -rw-r--r-- | src/device/usbd_control.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c index 353a66ad1..db0eb70a7 100644 --- a/src/device/usbd_control.c +++ b/src/device/usbd_control.c @@ -32,6 +32,10 @@ #include "device/usbd_pvt.h" #include "dcd.h" +#if CFG_TUSB_DEBUG >= 2 +extern void usbd_driver_print_control_complete_name(bool (*control_complete) (uint8_t, tusb_control_request_t const *)); +#endif + enum { EDPT_CTRL_OUT = 0x00, @@ -192,7 +196,6 @@ bool usbd_control_xfer_cb (uint8_t rhport, uint8_t ep_addr, xfer_result_t result if ( _ctrl_xfer.complete_cb ) { #if CFG_TUSB_DEBUG >= 2 - extern void usbd_driver_print_control_complete_name(bool (*control_complete) (uint8_t, tusb_control_request_t const *)); usbd_driver_print_control_complete_name(_ctrl_xfer.complete_cb); #endif |
