Revert "Keep PROTOCOL_VUSB path."

This reverts commit 1f6524968b.
This commit is contained in:
Robert 2024-07-01 01:46:18 -07:00
parent cbf85f8aa8
commit 1efd552afc
1 changed files with 2 additions and 8 deletions

View File

@ -284,7 +284,7 @@ void send_keyboard_report(void) {
static report_keyboard_t last_report;
#ifdef REPORT_MODS_SEPARATELY
#if defined(REPORT_MODS_SEPARATELY)
if (last_report.mods != keyboard_report->mods) {
//build a keyboard report that only updates the mods
report_keyboard_t mod_report;
@ -296,16 +296,10 @@ void send_keyboard_report(void) {
}
#endif
#ifdef PROTOCOL_VUSB
host_keyboard_send(keyboard_report);
memcpy(&last_report, keyboard_report, sizeof(report_keyboard_t));
#else
/* Only send the report if there are changes to propagate to the host. */
if (memcmp(keyboard_report, &last_report, sizeof(report_keyboard_t)) != 0) {
if (memcmp(&last_report, keyboard_report, sizeof(report_keyboard_t)) != 0) {
host_keyboard_send(keyboard_report);
memcpy(&last_report, keyboard_report, sizeof(report_keyboard_t));
}
#endif
}
/** \brief Get mods