diff options
| author | hathach <[email protected]> | 2020-04-13 17:04:18 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-13 17:04:18 +0700 |
| commit | f4df82939955d86f6c2e826e1bc9f4b5bb713df8 (patch) | |
| tree | 83c27973c090862435cf4694b2d7b6ae9745c2b9 /src/device | |
| parent | 4f693fea15b79363dd26dd8b4c22028a550b3c6c (diff) | |
lpc17xx move set configdevice into set address
for removing dcd_set_config()
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 2adac429c..55d6aa7eb 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -542,8 +542,6 @@ static bool process_control_request(uint8_t rhport, tusb_control_request_t const { uint8_t const cfg_num = (uint8_t) p_request->wValue; - dcd_set_config(rhport, cfg_num); - if ( !_usbd_dev.configured && cfg_num ) TU_ASSERT( process_set_config(rhport, cfg_num) ); _usbd_dev.configured = cfg_num ? 1 : 0; |
