Correct TeensyHID bootloader descriptors to use the correct revision code for the...
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 21 Dec 2009 07:42:43 +0000 (07:42 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 21 Dec 2009 07:42:43 +0000 (07:42 +0000)
Bootloaders/TeensyHID/Descriptors.c
Projects/LEDNotifier/LEDNotifier.c

index 14f0500..098de0d 100644 (file)
@@ -75,7 +75,7 @@ USB_Descriptor_Device_t DeviceDescriptor =
                \r
        .VendorID               = 0x16C0,\r
        .ProductID              = 0x0478,\r
-       .ReleaseNumber          = 0x0010,\r
+       .ReleaseNumber          = 0x0120,\r
                \r
        .ManufacturerStrIndex   = NO_DESCRIPTOR,\r
        .ProductStrIndex        = 0x01,\r
index c44ca58..1a87616 100644 (file)
@@ -78,7 +78,7 @@ ISR(TIMER0_COMPA_vect, ISR_BLOCK)
 {\r
        uint8_t LEDMask = LEDS_ALL_LEDS;\r
 \r
-       if (++SoftPWM_Count == 0x1F)\r
+       if (++SoftPWM_Count == 0b00011111)\r
          SoftPWM_Count = 0;\r
 \r
        if (SoftPWM_Count >= SoftPWM_Channel1_Duty)\r