diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/usb.c | 3 | ||||
-rw-r--r-- | src/usb.h | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -383,7 +383,8 @@ static int usb_device_add(libusb_device* dev) | |||
383 | if(devdesc.idVendor != VID_APPLE) | 383 | if(devdesc.idVendor != VID_APPLE) |
384 | return -1; | 384 | return -1; |
385 | if((devdesc.idProduct != PID_APPLE_T2_COPROCESSOR) && | 385 | if((devdesc.idProduct != PID_APPLE_T2_COPROCESSOR) && |
386 | (devdesc.idProduct != PID_APPLE_SILICON_RESTORE) && | 386 | ((devdesc.idProduct < PID_APPLE_SILICON_RESTORE_LOW) || |
387 | (devdesc.idProduct > PID_APPLE_SILICON_RESTORE_MAX)) && | ||
387 | ((devdesc.idProduct < PID_RANGE_LOW) || | 388 | ((devdesc.idProduct < PID_RANGE_LOW) || |
388 | (devdesc.idProduct > PID_RANGE_MAX))) | 389 | (devdesc.idProduct > PID_RANGE_MAX))) |
389 | return -1; | 390 | return -1; |
@@ -47,7 +47,8 @@ | |||
47 | #define PID_RANGE_LOW 0x1290 | 47 | #define PID_RANGE_LOW 0x1290 |
48 | #define PID_RANGE_MAX 0x12af | 48 | #define PID_RANGE_MAX 0x12af |
49 | #define PID_APPLE_T2_COPROCESSOR 0x8600 | 49 | #define PID_APPLE_T2_COPROCESSOR 0x8600 |
50 | #define PID_APPLE_SILICON_RESTORE 0x1901 | 50 | #define PID_APPLE_SILICON_RESTORE_LOW 0x1901 |
51 | #define PID_APPLE_SILICON_RESTORE_MAX 0x1904 | ||
51 | 52 | ||
52 | struct usb_device; | 53 | struct usb_device; |
53 | 54 | ||