diff --git a/quantum/action_util.c b/quantum/action_util.c index 6285dd1de8..9f0f9ec71b 100644 --- a/quantum/action_util.c +++ b/quantum/action_util.c @@ -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