Increase USB delay to 500ms

This commit is contained in:
DrZlo13 2021-11-22 21:23:22 +10:00
parent c52561984a
commit d30bde3e68
1 changed files with 3 additions and 3 deletions

View File

@ -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 = xStreamBufferCreate((CONFIG_USB_CDC_RX_BUFSIZE * 16), 1);
furi_hal_vcp.rx_stream_full = false; furi_hal_vcp.rx_stream_full = false;
ESP_LOGI(TAG, "USB initialization"); ESP_LOGI(TAG, "init");
gpio_config_t io_conf; gpio_config_t io_conf;
io_conf.intr_type = GPIO_PIN_INTR_DISABLE; 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_DN_PIN, 0);
gpio_set_level(USB_DP_PIN, 0); gpio_set_level(USB_DP_PIN, 0);
delay(100); delay(500);
gpio_set_level(USB_DN_PIN, 1); gpio_set_level(USB_DN_PIN, 1);
gpio_set_level(USB_DP_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_ERROR_CHECK(tusb_cdc_acm_init(&amc_cfg));
ESP_LOGI(TAG, "USB initialization DONE"); ESP_LOGI(TAG, "init done");
} }