1
0
Fork 0

Fix WAIT_FOR_USB handling (#23598)

This commit is contained in:
Joel Challis 2024-04-24 19:33:52 +01:00 committed by GitHub
parent c8ceda461a
commit 16cca527a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 27 additions and 14 deletions

View file

@ -51,6 +51,11 @@
#define USB_GETSTATUS_REMOTE_WAKEUP_ENABLED (2U)
#ifdef WAIT_FOR_USB
// TODO: Remove backwards compatibility with old define
# define USB_WAIT_FOR_ENUMERATION
#endif
/* -------------------------
* TMK host driver defs
* -------------------------
@ -143,7 +148,7 @@ void protocol_pre_init(void) {
/* Wait until USB is active */
while (true) {
#if defined(WAIT_FOR_USB)
#if defined(USB_WAIT_FOR_ENUMERATION)
if (USB_DRIVER.state == USB_ACTIVE) {
driver = &chibios_driver;
break;