diff options
| author | hathach <[email protected]> | 2020-08-01 20:14:58 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-08-01 20:14:58 +0700 |
| commit | acde49ccc97466f603dc7face7ab70ea10d38ee3 (patch) | |
| tree | 39faa19822bd0a3fee11bf3d6e05aa3157f70fe4 /src/portable/espressif | |
| parent | 310797a58073dbd6d56eb4c85afd354949ce6630 (diff) | |
enable pull-up in dcd_init() instead of usbd
Diffstat (limited to 'src/portable/espressif')
| -rw-r--r-- | src/portable/espressif/esp32s2/dcd_esp32s2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/espressif/esp32s2/dcd_esp32s2.c b/src/portable/espressif/esp32s2/dcd_esp32s2.c index 755e06701..58d92e728 100644 --- a/src/portable/espressif/esp32s2/dcd_esp32s2.c +++ b/src/portable/espressif/esp32s2/dcd_esp32s2.c @@ -165,8 +165,6 @@ static void enum_done_processing(void) *------------------------------------------------------------------*/ void dcd_init(uint8_t rhport) { - (void)rhport; - ESP_LOGV(TAG, "DCD init - Start"); // A. Disconnect @@ -204,6 +202,8 @@ void dcd_init(uint8_t rhport) USB_ENUMDONEMSK_M | USB_RESETDETMSK_M | USB_DISCONNINTMSK_M; // host most only + + dcd_connect(rhport); } void dcd_set_address(uint8_t rhport, uint8_t dev_addr) |
