From e3a3180b9b380ce9092ee0d7b8e9d82d66b1c261 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sat, 25 Sep 2021 01:29:07 +0900 Subject: usb: Add more Apple Silicon retstore PIDs 1904 is the M1 iMac; presumably this is now a range Signed-off-by: Hector Martin --- src/usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/usb.c') diff --git a/src/usb.c b/src/usb.c index 388b6f3..4ff2d07 100644 --- a/src/usb.c +++ b/src/usb.c @@ -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; -- cgit v1.1-32-gdbae