Skip to content

Commit

Permalink
Merge pull request #734 from LedgerHQ/lpa/flex-stax/fix_u2f
Browse files Browse the repository at this point in the history
Remove old usb hack
  • Loading branch information
lpascal-ledger authored Jul 17, 2024
2 parents cfe6535 + a9273e6 commit be3140d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib_stusb_impl/usbd_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,15 +940,6 @@ uint8_t *USBD_HID_GetReportDescriptor_impl(uint16_t *len)
switch (USBD_Device.request.wIndex & 0xFF) {
#ifdef HAVE_IO_U2F
case U2F_INTF:

// very dirty work due to lack of callback when USB_HID_Init is called
USBD_LL_OpenEP(&USBD_Device, U2F_EPIN_ADDR, USBD_EP_TYPE_INTR, U2F_EPIN_SIZE);

USBD_LL_OpenEP(&USBD_Device, U2F_EPOUT_ADDR, USBD_EP_TYPE_INTR, U2F_EPOUT_SIZE);

/* Prepare Out endpoint to receive 1st packet */
USBD_LL_PrepareReceive(&USBD_Device, U2F_EPOUT_ADDR, U2F_EPOUT_SIZE);

*len = sizeof(HID_ReportDesc_fido);
return (uint8_t *) HID_ReportDesc_fido;
#endif // HAVE_IO_U2F
Expand Down

0 comments on commit be3140d

Please sign in to comment.