1
0
Fork 0

[Bug] fix v-usb connection enumeration, ifdef workaround (#16511)

Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
Gompa 2022-03-03 18:24:04 +01:00 committed by GitHub
parent 75b40dc7a5
commit ae2c77c827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -270,6 +270,9 @@ void send_keyboard_report(void) {
keyboard_report->mods |= weak_override_mods;
#endif
#ifdef PROTOCOL_VUSB
host_keyboard_send(keyboard_report);
#else
static report_keyboard_t last_report;
/* Only send the report if there are changes to propagate to the host. */
@ -277,6 +280,7 @@ void send_keyboard_report(void) {
memcpy(&last_report, keyboard_report, sizeof(report_keyboard_t));
host_keyboard_send(keyboard_report);
}
#endif
}
/** \brief Get mods