]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Fixing pjrc bug affecting Mac OSX CDC driver
authorJacob Alexander <haata@kiibohd.com>
Sat, 1 Nov 2014 21:42:55 +0000 (14:42 -0700)
committerJacob Alexander <haata@kiibohd.com>
Sat, 1 Nov 2014 21:42:55 +0000 (14:42 -0700)
- Also updating usbMuxUart header with most recent keyboard defines

Output/pjrcUSB/arm/usb_desc.c
Output/usbMuxUart/output_com.h

index e5d8af5775070fbde88484c0eeba34f591eb7a3c..ac248232b0a96e77bc7011671edadf970a71c9e3 100644 (file)
@@ -435,7 +435,7 @@ static uint8_t config_descriptor[CONFIG_DESC_SIZE] = {
         0x24,                                   // bDescriptorType
         0x01,                                   // bDescriptorSubtype
         0x01,                                   // bmCapabilities
-        1,                                      // bDataInterface
+        CDC_DATA_INTERFACE,                     // bDataInterface
 // - 4 bytes -
         // Abstract Control Management Functional Descriptor, CDC Spec 5.2.3.3, Table 28
         4,                                      // bFunctionLength
index 30f7b54a05c30c88b278105033f61adeca7e4cf3..b76b525492c143497d32774d98c12d39e32718a8 100644 (file)
@@ -50,8 +50,10 @@ typedef enum USBKeyChangeState {
        USBKeyChangeState_Modifiers     = 0x01,
        USBKeyChangeState_MainKeys      = 0x02,
        USBKeyChangeState_SecondaryKeys = 0x04,
-       USBKeyChangeState_System        = 0x08,
-       USBKeyChangeState_Consumer      = 0x10,
+       USBKeyChangeState_TertiaryKeys  = 0x08,
+       USBKeyChangeState_System        = 0x10,
+       USBKeyChangeState_Consumer      = 0x20,
+       USBKeyChangeState_All           = 0x3F,
 } USBKeyChangeState;