From d30bde3e68c12a0b2c5670f1843819cf52c6e18e Mon Sep 17 00:00:00 2001 From: DrZlo13 Date: Mon, 22 Nov 2021 21:23:22 +1000 Subject: [PATCH] Increase USB delay to 500ms --- main/usb-cdc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/usb-cdc.c b/main/usb-cdc.c index d77757f..98a0881 100644 --- a/main/usb-cdc.c +++ b/main/usb-cdc.c @@ -173,7 +173,7 @@ void usb_cdc_init(void) { furi_hal_vcp.rx_stream = xStreamBufferCreate((CONFIG_USB_CDC_RX_BUFSIZE * 16), 1); furi_hal_vcp.rx_stream_full = false; - ESP_LOGI(TAG, "USB initialization"); + ESP_LOGI(TAG, "init"); gpio_config_t io_conf; io_conf.intr_type = GPIO_PIN_INTR_DISABLE; @@ -185,7 +185,7 @@ void usb_cdc_init(void) { gpio_set_level(USB_DN_PIN, 0); gpio_set_level(USB_DP_PIN, 0); - delay(100); + delay(500); gpio_set_level(USB_DN_PIN, 1); gpio_set_level(USB_DP_PIN, 1); @@ -208,5 +208,5 @@ void usb_cdc_init(void) { ESP_ERROR_CHECK(tusb_cdc_acm_init(&amc_cfg)); - ESP_LOGI(TAG, "USB initialization DONE"); + ESP_LOGI(TAG, "init done"); }