]> git.sur5r.net Git - openocd/blobdiff - src/jtag/drivers/mpsse.c
ftdi: extend ftdi_location format
[openocd] / src / jtag / drivers / mpsse.c
index 06d008b476b18403a56e1f5ca43f0b213c5ea281..89248921ae46657cab6510557db4f5b964514682 100644 (file)
@@ -120,7 +120,7 @@ static bool device_location_equal(libusb_device *device, const char *location)
 
        LOG_DEBUG("device path has %i steps", path_len);
 
-       ptr = strtok(loc, ":");
+       ptr = strtok(loc, "-:");
        if (ptr == NULL) {
                LOG_DEBUG("no ':' in path");
                goto done;
@@ -132,7 +132,7 @@ static bool device_location_equal(libusb_device *device, const char *location)
 
        path_step = 0;
        while (path_step < 7) {
-               ptr = strtok(NULL, ",");
+               ptr = strtok(NULL, ".,");
                if (ptr == NULL) {
                        LOG_DEBUG("no more tokens in path at step %i", path_step);
                        break;