diff options
| author | hathach <[email protected]> | 2025-11-10 11:02:20 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-11-10 11:02:20 +0700 |
| commit | 6364a4df7a6e3a2b3583fe11a88665f06d18628b (patch) | |
| tree | 45e0a0b2f8acfd811cce050475fc828bc2e034d2 /src/device/dcd.h | |
| parent | 989acc15287f86bb1fd3f262d69b3dc9c9c28da8 (diff) | |
| parent | 96f35fc0a559aa09da70e0dede5a43081615723f (diff) | |
Merge branch 'master' into fork/c1570/improved_docs
Diffstat (limited to 'src/device/dcd.h')
| -rw-r--r-- | src/device/dcd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index 400f62bff..1b0289280 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -79,7 +79,7 @@ typedef struct TU_ATTR_ALIGNED(4) { // FUNC_CALL struct { - void (*func) (void*); + void (*func) (void* param); void* param; }func_call; }; @@ -214,7 +214,7 @@ TU_ATTR_ALWAYS_INLINE static inline void dcd_event_setup_received(uint8_t rhport dcd_event_t event; event.rhport = rhport; event.event_id = DCD_EVENT_SETUP_RECEIVED; - memcpy(&event.setup_received, setup, sizeof(tusb_control_request_t)); + (void) memcpy(&event.setup_received, setup, sizeof(tusb_control_request_t)); dcd_event_handler(&event, in_isr); } |
