Skip to content

Commit

Permalink
This fixes #2 - LabTool USB Enumeration Fail on Windows 8.1.
Browse files Browse the repository at this point in the history
Reported and solved by B.VERNOUX.
  • Loading branch information
lindvalla committed Oct 30, 2013
1 parent 852f184 commit b13554c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fw/program/source/usb_descriptors.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
{
.Header = {.Size = sizeof(USB_Descriptor_Configuration_Header_t), .Type = DTYPE_Configuration},

.TotalConfigurationSize = sizeof(USB_Descriptor_Configuration_t), // v0.97 used sizeof(...)-1
.TotalConfigurationSize = sizeof(USB_Descriptor_Configuration_t) - 1, /* B.VERNOUX Last byte LabTool_Termination shall be not sent remove 1, v0.97 used sizeof(...)-1 */
.TotalInterfaces = 1,

.ConfigurationNumber = 1,
Expand Down Expand Up @@ -208,7 +208,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
break;
case DTYPE_Configuration:
Address = &ConfigurationDescriptor;
Size = sizeof(USB_Descriptor_Configuration_t);
Size = sizeof(USB_Descriptor_Configuration_t) - 1; /* B.VERNOUX Last byte LabTool_Termination shall be not sent */
break;
case DTYPE_String:
switch (DescriptorNumber)
Expand Down

0 comments on commit b13554c

Please sign in to comment.