libusb: parse -u 11-22-33 as USB path, too

This commit is contained in:
Matthias Ringwald 2016-07-22 16:43:54 +02:00
parent 7ef6a7bbd9
commit a4c4a5d697

View File

@ -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");