Skip to content

Commit

Permalink
Workaround for RedStone3 querying USB descriptor. Will not present US…
Browse files Browse the repository at this point in the history
…B mode.
  • Loading branch information
ev-mp committed Apr 4, 2018
1 parent f11b955 commit fa97276
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ds5/ds5-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,10 @@ namespace librealsense
if (usb_modality)
{
_usb_mode = depth_ep.get_usb_specification();
usb_type_str = platform::usb_spec_names.at(_usb_mode);
if (platform::usb_undefined != _usb_mode)
usb_type_str = platform::usb_spec_names.at(_usb_mode);
else // Backend fails to provide USB descriptor - occurs with RS3 build. Requires further work
usb_modality = false;
}

if (advanced_mode && (_usb_mode >= platform::usb3_type))
Expand Down

0 comments on commit fa97276

Please sign in to comment.