Skip to content

Commit 93c0b38

Browse files
authored
PR #14417 from Nir-Az: fix wrong string compare on python device repr
2 parents 4b25d6e + fcdbe1f commit 93c0b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrappers/python/pyrs_device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void init_device(py::module &m) {
6464
auto connection_type = self.get_info(RS2_CAMERA_INFO_CONNECTION_TYPE);
6565
ss << " on ";
6666
ss << connection_type;
67-
if (connection_type == "USB")
67+
if (strcmp(connection_type, "USB") == 0)
6868
if (self.supports(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR))
6969
ss << self.get_info(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR);
7070
}

0 commit comments

Comments
 (0)