mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Ensure device address latch bit is not set at the same time as the new address, as per datasheet.
Minor documentation fixes. Fix broken USB host mode due to the USB frame counter not being updated during the early enumeration steps, causing USB_Host_DelayMS() to spinloop forever.
This commit is contained in:
@@ -82,3 +82,12 @@ void SetupHardware(void)
|
||||
Buttons_Init();
|
||||
USB_Init(USB_MODE_UID);
|
||||
}
|
||||
|
||||
/** Event handler for the library USB mode change event. */
|
||||
void EVENT_USB_UIDChange(void)
|
||||
{
|
||||
printf_P(PSTR(ESC_FG_YELLOW "UID Change to %S mode\r\n" ESC_FG_WHITE),
|
||||
(USB_CurrentMode == USB_MODE_DEVICE) ? PSTR("Device") : PSTR("Host"));
|
||||
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user