Skip to content

Commit

Permalink
Enfore imu only on l515
Browse files Browse the repository at this point in the history
  • Loading branch information
aangerma committed Aug 1, 2019
1 parent 8ba722c commit 8e23141
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/l500/l500-factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,14 @@ namespace librealsense
if (!ivcam2::try_fetch_usb_device(group.usb_devices, depth, hwm))
LOG_WARNING("try_fetch_usb_device(...) failed.");

if (g.second.size() < 2)
{
LOG_WARNING("L500 partial enum: " << g.second.size() << " HID devices were recognized (2+ expected)");
if(g.first[0].pid != L500_PID)
if (g.second.size() < 2)
{
LOG_WARNING("L500 partial enum: " << g.second.size() << " HID devices were recognized (2+ expected)");
#if !defined(ANDROID) && !defined(__APPLE__) // Not supported by android & macos
continue;
continue;
#endif // Not supported by android & macos
}
}

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

0 comments on commit 8e23141

Please sign in to comment.