Skip to content

Commit

Permalink
2 wwarnings removed, json.hpp removed from third-party folder
Browse files Browse the repository at this point in the history
  • Loading branch information
remibettan committed Jul 31, 2023
1 parent 206b822 commit 0f4c5a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24,623 deletions.
6 changes: 4 additions & 2 deletions src/ds/d500/d500-factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ namespace librealsense
auto pid = _depth.front().pid;
platform::backend_device_group group{_depth, _hwm, _hid};

switch(pid)

// to be uncommented after d500 device is added
/*switch (pid)
{
default:
throw std::runtime_error(rsutils::string::from() << "Unsupported RS400 model! 0x"
<< std::hex << std::setw(4) << std::setfill('0') <<(int)pid);
}
}*/
}

std::vector<std::shared_ptr<device_info>> d500_info::pick_d500_devices(
Expand Down
5 changes: 3 additions & 2 deletions src/ds/d500/d500-private.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ namespace librealsense
{
bool found = false;
result = *it;
switch (info.pid)
// to be uncommented after d500 device is added
/*switch (info.pid)
{
default:
throw not_implemented_exception(rsutils::string::from() << "USB device "
<< std::hex << info.pid << ":" << info.vid << std::dec << " is not supported.");
break;
}
}*/

if (found)
{
Expand Down
Loading

0 comments on commit 0f4c5a8

Please sign in to comment.