Skip to content

Commit

Permalink
reverse order of sensor open
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Apr 17, 2024
1 parent 1a4b8ea commit f6482a4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pipeline/resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ namespace librealsense

void open()
{
for (auto && kvp : _dev_to_profiles) {
auto&& sub = _results.at(kvp.first);
sub->open(kvp.second);
std::map<int, stream_profiles>::reverse_iterator it;
for (it = _dev_to_profiles.rbegin(); it != _dev_to_profiles.rend(); it++) {
auto&& sub = _results.at(it->first);
sub->open(it->second);
}
}

Expand Down

0 comments on commit f6482a4

Please sign in to comment.