From b1b3ce191fc02f4bb1e3b1b898ed5186e01d5452 Mon Sep 17 00:00:00 2001 From: RenaudeauBrice Date: Wed, 23 Oct 2019 11:09:45 +0200 Subject: [PATCH] Full portChain in physical port info Usefull when we want to connect to a specific port. The t265 now shows the full path to the device --- src/tm2/tm-device.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tm2/tm-device.cpp b/src/tm2/tm-device.cpp index c9e982cee8..d8a500d141 100644 --- a/src/tm2/tm-device.cpp +++ b/src/tm2/tm-device.cpp @@ -1643,7 +1643,11 @@ namespace librealsense register_info(RS2_CAMERA_INFO_PRODUCT_ID, productIdStr); register_info(RS2_CAMERA_INFO_PRODUCT_LINE, "T200"); - std::string device_path = std::string("vid_") + vendorIdStr + std::string(" pid_") + productIdStr + std::string(" bus_") + std::to_string(info.usbDescriptor.bus) + std::string(" port_") + std::to_string(info.usbDescriptor.port); + std::string device_path = std::string("vid_") + vendorIdStr + std::string(" pid_") + productIdStr + std::string(" bus_") + std::to_string(info.usbDescriptor.bus) + std::string(" port_") + std::to_string(info.usbDescriptor.portChain[0]); + for(int i=1; i(this, dev);