Skip to content
Permalink
Browse files

Orbbec: Fix a camera freeze when using two cameras and fetching ZImag…

…e and Point3DImage
  • Loading branch information...
f00f authored and sisiplac committed Apr 3, 2019
1 parent 34e88b8 commit 05430ad390dbdb4117b2bc808ff7a0e69191206e
Showing with 2 additions and 1 deletion.
  1. +2 −1 BetaCameras/OrbbecOpenNI/OrbbecOpenNI.cpp
@@ -632,7 +632,8 @@ void MetriCam2::Cameras::AstraOpenNI::ActivateChannelImpl(String^ channelName)

openni::Status rc;

if (channelName->Equals(ChannelNames::ZImage) || channelName->Equals(ChannelNames::Point3DImage))
if ((channelName->Equals(ChannelNames::Point3DImage) && !IsChannelActive(ChannelNames::ZImage))
|| (channelName->Equals(ChannelNames::ZImage) && !IsChannelActive(ChannelNames::Point3DImage)))
{
auto irGainBefore = GetIRGain();

0 comments on commit 05430ad

Please sign in to comment.
You can’t perform that action at this time.