From 6e24db0c825ae5e6db12c3282efb9ca457d27398 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 31 Aug 2008 20:50:07 +0000 Subject: [PATCH] fix meizu_dfu's buggy usb device id matching git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18373 a1c6a512-1295-4272-9138-f99709370657 --- utils/meizu_dfu/meizu_dfu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/meizu_dfu/meizu_dfu.c b/utils/meizu_dfu/meizu_dfu.c index 67a5065384..d5e9ffb0b8 100644 --- a/utils/meizu_dfu/meizu_dfu.c +++ b/utils/meizu_dfu/meizu_dfu.c @@ -121,6 +121,7 @@ void init_img(image_data_t *img, const char *filename, image_attr_t *attr) #define DFU_VEN 0x0419 #define DFU_DEV 0x0141 +#define DFU_DEV_M6SL 0x0145 usb_dev_handle *device; int timeout = 0xa0000; @@ -139,7 +140,8 @@ void usb_dev_open() for (bus = usb_get_busses(); bus != NULL; bus = bus->next) for (dev = bus->devices; dev != NULL; dev = dev->next) if (dev->descriptor.idVendor == DFU_VEN - || dev->descriptor.idProduct == DFU_DEV) + && ( dev->descriptor.idProduct == DFU_DEV + || dev->descriptor.idProduct == DFU_DEV_M6SL)) goto found; printf("\nNo device found, exiting.\n");