From a4c4a5d69780f1e0dc28c0d4bd89c78275278c2c Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 22 Jul 2016 16:43:54 +0200 Subject: [PATCH] libusb: parse -u 11-22-33 as USB path, too --- port/libusb/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/libusb/main.c b/port/libusb/main.c index a6822f733..a97c972c6 100644 --- a/port/libusb/main.c +++ b/port/libusb/main.c @@ -108,7 +108,7 @@ int main(int argc, const char * argv[]){ usb_path_len++; printf("%02x ", port); if (!delimiter) break; - if (*delimiter != ':') break; + if (*delimiter != ':' && *delimiter != '-') break; port_str = delimiter+1; } printf("\n");