We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f934be commit f6b3ebaCopy full SHA for f6b3eba
cpp/orbbec/record.cpp
@@ -54,7 +54,7 @@ bool setCameraProperty(std::shared_ptr<ob::Device> device, OBPropertyID property
54
if (value == device->getBoolProperty(propertyId)) return true;
55
56
if(device->isPropertySupported(propertyId, OB_PERMISSION_WRITE)) {
57
- device->setBoolProperty(propertyId, !value);
+ device->setBoolProperty(propertyId, value);
58
return true;
59
}
60
std::cerr << propertyName << " set property is not supported." << std::endl;
0 commit comments