Skip to content
Snippets Groups Projects
Commit c99f6657 authored by Dean Camera's avatar Dean Camera
Browse files

Correct TeensyHID bootloader descriptors to use the correct revision code for...

Correct TeensyHID bootloader descriptors to use the correct revision code for the ATMEGA32U4 based Teensy revision.
parent 37c9ba7f
Branches
Tags
No related merge requests found
...@@ -75,7 +75,7 @@ USB_Descriptor_Device_t DeviceDescriptor = ...@@ -75,7 +75,7 @@ USB_Descriptor_Device_t DeviceDescriptor =
.VendorID = 0x16C0, .VendorID = 0x16C0,
.ProductID = 0x0478, .ProductID = 0x0478,
.ReleaseNumber = 0x0010, .ReleaseNumber = 0x0120,
.ManufacturerStrIndex = NO_DESCRIPTOR, .ManufacturerStrIndex = NO_DESCRIPTOR,
.ProductStrIndex = 0x01, .ProductStrIndex = 0x01,
......
...@@ -78,7 +78,7 @@ ISR(TIMER0_COMPA_vect, ISR_BLOCK) ...@@ -78,7 +78,7 @@ ISR(TIMER0_COMPA_vect, ISR_BLOCK)
{ {
uint8_t LEDMask = LEDS_ALL_LEDS; uint8_t LEDMask = LEDS_ALL_LEDS;
if (++SoftPWM_Count == 0x1F) if (++SoftPWM_Count == 0b00011111)
SoftPWM_Count = 0; SoftPWM_Count = 0;
if (SoftPWM_Count >= SoftPWM_Channel1_Duty) if (SoftPWM_Count >= SoftPWM_Channel1_Duty)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment