Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cozycactus committed Sep 5, 2020
1 parent 547c403 commit ce9c72b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
*.elf
*.map
*.img
*.out
*.fw
tags
*gitignore
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static void SetupDataHS(uint8_t request_type, uint8_t request, uint16_t value,
if (request_type !=
(FX3_USB_REQTYPE_IN | FX3_USB_REQTYPE_TYPE_STD | FX3_USB_REQTYPE_TGT_DEVICE))
goto stall;
const uint8_t *descr = GetDescriptor(value>>8, value&0xff);
const uint8_t *descr = GetDescriptorHS(value>>8, value&0xff);
if (!descr) goto stall;
uint8_t descr_type = descr[1];
uint16_t len = (descr_type == FX3_USB_DESCRIPTOR_CONFIGURATION ||
Expand Down

0 comments on commit ce9c72b

Please sign in to comment.