浏览代码

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

Co-authored-by: Joel Challis <git@zvecr.com>
Gompa 3 年之前
父节点
当前提交
ae2c77c827
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      quantum/action_util.c

+ 4 - 0
quantum/action_util.c

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