usb_usb: Remomve matrix_scan in suspend loop

- This should not be needed anymore
- Confirmed that there is no problem on FC660C startup
This commit is contained in:
tmk 2023-12-16 13:24:03 +09:00
parent 7403b9731b
commit ea27f71701

View file

@ -226,9 +226,6 @@ void led_set(uint8_t usb_led)
if (kbd4.isReady()) kbd4.SetLed(&usb_led);
}
// 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.
void hook_usb_suspend_loop(void)
{
#ifndef TMK_LUFA_DEBUG_UART
@ -239,8 +236,6 @@ void hook_usb_suspend_loop(void)
if (usb_host.checkRemoteWakeup()) {
USB_Device_SendRemoteWakeup();
}
} else {
matrix_scan();
}
}