Skip to content

Commit 8e23141

Browse files
committed
Enfore imu only on l515
1 parent 8ba722c commit 8e23141

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/l500/l500-factory.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,14 @@ namespace librealsense
106106
if (!ivcam2::try_fetch_usb_device(group.usb_devices, depth, hwm))
107107
LOG_WARNING("try_fetch_usb_device(...) failed.");
108108

109-
if (g.second.size() < 2)
110-
{
111-
LOG_WARNING("L500 partial enum: " << g.second.size() << " HID devices were recognized (2+ expected)");
109+
if(g.first[0].pid != L500_PID)
110+
if (g.second.size() < 2)
111+
{
112+
LOG_WARNING("L500 partial enum: " << g.second.size() << " HID devices were recognized (2+ expected)");
112113
#if !defined(ANDROID) && !defined(__APPLE__) // Not supported by android & macos
113-
continue;
114+
continue;
114115
#endif // Not supported by android & macos
115-
}
116+
}
116117

117118
auto info = std::make_shared<l500_info>(ctx, g.first, hwm, g.second);
118119
chosen.push_back(depth);

0 commit comments

Comments
 (0)