summaryrefslogtreecommitdiffstats
path: root/utils/meizu_dfu/meizu_dfu.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-08-31 20:50:07 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-08-31 20:50:07 +0000
commit6e24db0c825ae5e6db12c3282efb9ca457d27398 (patch)
tree52ddd9be224b601661296d48c7c8eab3fdc19c16 /utils/meizu_dfu/meizu_dfu.c
parent1867f2418986114f201aba0665424f33bc0c7579 (diff)
downloadrockbox-6e24db0c825ae5e6db12c3282efb9ca457d27398.tar.gz
rockbox-6e24db0c825ae5e6db12c3282efb9ca457d27398.tar.bz2
rockbox-6e24db0c825ae5e6db12c3282efb9ca457d27398.zip
fix meizu_dfu's buggy usb device id matching
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18373 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/meizu_dfu/meizu_dfu.c')
-rw-r--r--utils/meizu_dfu/meizu_dfu.c4
1 files changed, 3 insertions, 1 deletions
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");