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) if(devdesc.idVendor != VID_APPLE) return -1; if((devdesc.idProduct != PID_APPLE_T2_COPROCESSOR) && - (devdesc.idProduct != PID_APPLE_SILICON_RESTORE) && + ((devdesc.idProduct < PID_APPLE_SILICON_RESTORE_LOW) || + (devdesc.idProduct > PID_APPLE_SILICON_RESTORE_MAX)) && ((devdesc.idProduct < PID_RANGE_LOW) || (devdesc.idProduct > PID_RANGE_MAX))) return -1; @@ -47,7 +47,8 @@ #define PID_RANGE_LOW 0x1290 #define PID_RANGE_MAX 0x12af #define PID_APPLE_T2_COPROCESSOR 0x8600 -#define PID_APPLE_SILICON_RESTORE 0x1901 +#define PID_APPLE_SILICON_RESTORE_LOW 0x1901 +#define PID_APPLE_SILICON_RESTORE_MAX 0x1904 struct usb_device; |