We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b25d6e + fcdbe1f commit 93c0b38Copy full SHA for 93c0b38
wrappers/python/pyrs_device.cpp
@@ -64,7 +64,7 @@ void init_device(py::module &m) {
64
auto connection_type = self.get_info(RS2_CAMERA_INFO_CONNECTION_TYPE);
65
ss << " on ";
66
ss << connection_type;
67
- if (connection_type == "USB")
+ if (strcmp(connection_type, "USB") == 0)
68
if (self.supports(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR))
69
ss << self.get_info(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR);
70
}
0 commit comments