Skip to content

Commit

Permalink
usb: correctly display 10 Gbps USB 3.x
Browse files Browse the repository at this point in the history
iPhone 15 Pro/Pro Max support up to 10 Gbps USB 3.x. Add the necessary
case to display the correct link speed.

Requires libusb 1.0.22 (2018-03-25) or newer,
introduced in libusb/libusb@7a91d7c
  • Loading branch information
Forst authored and nikias committed Sep 14, 2024
1 parent 81a4165 commit a2dceac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,9 @@ static void device_complete_initialization(struct mode_context *context, struct
case LIBUSB_SPEED_SUPER:
usbdev->speed = 5000000000;
break;
case LIBUSB_SPEED_SUPER_PLUS:
usbdev->speed = 10000000000;
break;
case LIBUSB_SPEED_HIGH:
case LIBUSB_SPEED_UNKNOWN:
default:
Expand Down

0 comments on commit a2dceac

Please sign in to comment.