Skip to content

Commit

Permalink
V-USB Interface reorder
Browse files Browse the repository at this point in the history
This might seem irrelevant now as we only got 2 endpoints, but with a 3rd endpoint (qmk#9020) it is needed.

I have PRed in master as this is NOT breaking change.

- Reordered usb_interface enumeration.
- VIA expects RAW_HID endpoint to be at interface 1.
- This does not break anything with only 2 endpoints. Keyboard is always at interface 0 and the extra feature is at interface 1.
  • Loading branch information
yiancar committed May 13, 2020
1 parent 805f5cb commit 642e121
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tmk_core/protocol/vusb/vusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
enum usb_interfaces {
KEYBOARD_INTERFACE = NEXT_INTERFACE,
#if (defined(MOUSE_ENABLE) || defined(EXTRAKEY_ENABLE))
MOUSE_EXTRA_INTERFACE = NEXT_INTERFACE,
#endif
#ifdef RAW_ENABLE
RAW_INTERFACE = NEXT_INTERFACE,
#endif
#if (defined(MOUSE_ENABLE) || defined(EXTRAKEY_ENABLE))
MOUSE_EXTRA_INTERFACE = NEXT_INTERFACE,
#endif
#ifdef CONSOLE_ENABLE
CONSOLE_INTERFACE = NEXT_INTERFACE,
#endif
Expand Down

0 comments on commit 642e121

Please sign in to comment.