Skip to content

Commit

Permalink
Fix setting preset mode for Stereo in .build
Browse files Browse the repository at this point in the history
  • Loading branch information
Matevz Morato committed Jan 21, 2025
1 parent 261f4b5 commit d8e4a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/depthai/pipeline/node/StereoDepth.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class StereoDepth : public DeviceNodeCRTP<DeviceNode, StereoDepth, StereoDepthPr
ROBOTICS
};
std::shared_ptr<StereoDepth> build(Node::Output& left, Node::Output& right, PresetMode presetMode = PresetMode::HIGH_ACCURACY) {
this->presetMode = presetMode;
setDefaultProfilePreset(presetMode);
left.link(this->left);
right.link(this->right);
return std::static_pointer_cast<StereoDepth>(shared_from_this());
Expand Down

0 comments on commit d8e4a5c

Please sign in to comment.