Skip to content

Commit f6b3eba

Browse files
author
kaatrasa
committed
Fix bug in orbbec record tool
1 parent 5f934be commit f6b3eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/orbbec/record.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool setCameraProperty(std::shared_ptr<ob::Device> device, OBPropertyID property
5454
if (value == device->getBoolProperty(propertyId)) return true;
5555

5656
if(device->isPropertySupported(propertyId, OB_PERMISSION_WRITE)) {
57-
device->setBoolProperty(propertyId, !value);
57+
device->setBoolProperty(propertyId, value);
5858
return true;
5959
}
6060
std::cerr << propertyName << " set property is not supported." << std::endl;

0 commit comments

Comments
 (0)