From e2ac2d746fa3f2c3dfed97cf4a9a148a5fb2beca Mon Sep 17 00:00:00 2001 From: tmk Date: Sun, 29 Mar 2020 14:37:55 +0900 Subject: [PATCH] usb_usb: Remove hook_usb_startup_wait_loop matrix_scan in hook_usb_startup_wait_loop is not required for FC660C since commit dd7b75: SOF timing fix of USB_Host_Shield_2.0. Without INTERRUPT_CONTROL_ENDPOINT the matrix_scan blocks around 2300ms and prevents getting USB configured. In the result console_putc starts sending before hid_listen is ready and chars are lost. console_is_ready delay value should be around 5000ms if matrix_scan is needed in hook_usb_startup_wait_loop. --- converter/usb_usb/usb_usb.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/converter/usb_usb/usb_usb.cpp b/converter/usb_usb/usb_usb.cpp index 3d08b118..625a3b82 100644 --- a/converter/usb_usb/usb_usb.cpp +++ b/converter/usb_usb/usb_usb.cpp @@ -226,13 +226,6 @@ void led_set(uint8_t usb_led) if (kbd4.isReady()) kbd4.SetReport(0, 0, 2, 0, 1, &usb_led); } -// We need to keep doing UHS2 USB::Task() to initialize keyboard -// even before USB is not configured. -void hook_usb_startup_wait_loop(void) -{ - matrix_scan(); -} - // We need to keep doing UHS2 USB::Task() to initialize keyboard // even during USB bus is suspended and remote wakeup is not enabled yet on LUFA side. // This situation can happen just after pluging converter into USB port. -- 2.46.2